urlmon: Fixed invalid read and write errors (Valgrind).

This commit is contained in:
Thomas Mullaly 2011-02-14 19:39:17 -05:00 committed by Alexandre Julliard
parent 88ce03103b
commit 1703368e26
1 changed files with 1 additions and 1 deletions

View File

@ -6008,7 +6008,7 @@ static HRESULT combine_uri(Uri *base, Uri *relative, DWORD flags, IUri **result,
DWORD new_len = remove_dot_segments(path+offset,path_len-offset);
if(new_len != path_len) {
WCHAR *tmp = heap_realloc(path, (path_offset+new_len+1)*sizeof(WCHAR));
WCHAR *tmp = heap_realloc(path, (offset+new_len+1)*sizeof(WCHAR));
if(!tmp) {
heap_free(path);
*result = NULL;