8 Feb
2015
8 Feb
'15
1:02 p.m.
Hi Pierre, On 02/08/15 19:59, Pierre Schweitzer wrote:
inf = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR)); + if (!inf) + { + SetLastError(ERROR_NOT_ENOUGH_MEMORY); + return FALSE;
You don't need to call SetLastError here. It's already set by HeapAlloc on failure. Jacek