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