msxml3: Fix possible NULL pointer access in heap_strdupW.

This commit is contained in:
André Hentschel 2012-11-17 22:52:35 +01:00 committed by Alexandre Julliard
parent e9bfe83683
commit c02b84d3c5
1 changed files with 2 additions and 1 deletions

View File

@ -194,7 +194,8 @@ static inline LPWSTR heap_strdupW(LPCWSTR str)
size = (strlenW(str)+1)*sizeof(WCHAR);
ret = heap_alloc(size);
memcpy(ret, str, size);
if(ret)
memcpy(ret, str, size);
}
return ret;