Commit c02b84d3 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

msxml3: Fix possible NULL pointer access in heap_strdupW.

parent e9bfe836
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment