localspl: Check for NULL return from HeapAlloc.

This commit is contained in:
Marcus Meissner 2009-10-17 12:40:42 +02:00 committed by Alexandre Julliard
parent d1963ee2f1
commit 1aee359542
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ static LPWSTR strdupW(LPCWSTR p)
if(!p) return NULL; if(!p) return NULL;
len = (lstrlenW(p) + 1) * sizeof(WCHAR); len = (lstrlenW(p) + 1) * sizeof(WCHAR);
ret = heap_alloc(len); ret = heap_alloc(len);
memcpy(ret, p, len); if (ret) memcpy(ret, p, len);
return ret; return ret;
} }