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

jscript: Fix possible NULL pointer access in heap_strdupW.

parent 7e2cac26
......@@ -84,7 +84,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