Commit 1aee3595 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

localspl: Check for NULL return from HeapAlloc.

parent d1963ee2
......@@ -193,7 +193,7 @@ static LPWSTR strdupW(LPCWSTR p)
if(!p) return NULL;
len = (lstrlenW(p) + 1) * sizeof(WCHAR);
ret = heap_alloc(len);
memcpy(ret, p, len);
if (ret) memcpy(ret, p, len);
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