26 Sep
2013
26 Sep
'13
6:09 p.m.
Jactry <jactry92(a)gmail.com> writes:
+ chBuffer = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size+2); + if(!chBuffer) + { + CloseHandle(hFile); + return HRESULT_FROM_WIN32(GetLastError()); + }
It's not useful to zero the buffer since you are reading into it. Also GetLastError won't do anything useful here. -- Alexandre Julliard julliard(a)winehq.org