On Monday, 5 August 2013 at 21:42:11 UTC, Kagamin wrote:
On Sunday, 4 August 2013 at 09:28:11 UTC, Denis Shelomovskij
So I suppose you use `HeapFree` too? Please, be sure you use
this Windows API BOOL/BOOLEAN bug workaround:
BOOLEAN is either TRUE or FALSE, so it should be ok to check
only the least significant byte.
Not in Windows:
typedef BYTE BOOLEAN;
typedef int BOOL;
While ideally it should be TRUE or FALSE, sometimes it isn't.
In fact, for functions that return BOOL, MSDN states the
"If the function succeeds, the return value is nonzero."