localspl: Check for NULL return from HeapAlloc.
This commit is contained in:
parent
d1963ee2f1
commit
1aee359542
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue