fixed return value of FindCloseChangeNotification()

svn path=/trunk/; revision=11238
This commit is contained in:
Thomas Bluemel 2004-10-08 21:29:40 +00:00
parent db533baf58
commit 82a44258db

View file

@ -1,4 +1,4 @@
/* $Id: cnotify.c,v 1.10 2004/01/23 21:16:03 ekohl Exp $
/* $Id: cnotify.c,v 1.11 2004/10/08 21:29:40 weiden Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@ -20,7 +20,13 @@
BOOL STDCALL
FindCloseChangeNotification (HANDLE hChangeHandle)
{
NtClose(hChangeHandle);
NTSTATUS Status = NtClose(hChangeHandle);
if(!NT_SUCCESS(Status))
{
SetLastErrorByStatus(Status);
return FALSE;
}
return TRUE;
}