Re: [PATCH 1/6] riched20: Implement ITextDocument_fnOpen.
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
4550
Age (days ago)
4550
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard