update for HEAD-2003091401
[reactos.git] / lib / kernel32 / file / cnotify.c
index e16c187..0dd37da 100644 (file)
@@ -14,6 +14,9 @@
 #define NDEBUG
 #include <kernel32/kernel32.h>
 
+/*
+ * @implemented
+ */
 WINBOOL STDCALL
 FindCloseChangeNotification (HANDLE hChangeHandle)
 {
@@ -22,6 +25,9 @@ FindCloseChangeNotification (HANDLE hChangeHandle)
 }
 
 
+/*
+ * @implemented
+ */
 HANDLE
 STDCALL
 FindFirstChangeNotificationA (
@@ -61,6 +67,9 @@ FindFirstChangeNotificationA (
 }
 
 
+/*
+ * @implemented
+ */
 HANDLE
 STDCALL
 FindFirstChangeNotificationW (
@@ -87,7 +96,7 @@ FindFirstChangeNotificationW (
                                           NULL,
                                           NULL))
    {
-      SetLastErrorByStatus(STATUS_PATH_SYNTAX_BAD);
+      SetLastErrorByStatus(STATUS_OBJECT_PATH_SYNTAX_BAD);
       return INVALID_HANDLE_VALUE;
    }
 
@@ -97,7 +106,7 @@ FindFirstChangeNotificationW (
                                NULL,
                                NULL);
 
-   Status = NtOpenFile (hDir,
+   Status = NtOpenFile (&hDir,
                         SYNCHRONIZE|FILE_LIST_DIRECTORY,
                         &ObjectAttributes,
                         &IoStatus,
@@ -129,6 +138,9 @@ FindFirstChangeNotificationW (
 }
 
 
+/*
+ * @implemented
+ */
 WINBOOL
 STDCALL
 FindNextChangeNotification (