diff --git a/reactos/lib/kernel32/file/cnotify.c b/reactos/lib/kernel32/file/cnotify.c index b618a73f626..b2c9548369a 100644 --- a/reactos/lib/kernel32/file/cnotify.c +++ b/reactos/lib/kernel32/file/cnotify.c @@ -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; }