7529f5c659
wincompat.h is a stripped down version coming from linapple-pie with the bare minimum common types. Each group of functions in its own file. Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
14 lines
201 B
C++
14 lines
201 B
C++
#include "linux/windows/handles.h"
|
|
|
|
BOOL CloseHandle(HANDLE hObject)
|
|
{
|
|
if (hObject && hObject != INVALID_HANDLE_VALUE)
|
|
{
|
|
delete hObject;
|
|
return TRUE;
|
|
}
|
|
else
|
|
{
|
|
return FALSE;
|
|
}
|
|
}
|