[KERNEL32]
authorPierre Schweitzer <pierre@reactos.org>
Sat, 25 Apr 2015 18:36:41 +0000 (18:36 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 25 Apr 2015 18:36:41 +0000 (18:36 +0000)
Remove hack in PrivMoveFileIdentityW and properly handle failing call to BasepNotifyTrackingService().
Fixes regression brought by r67355

svn path=/trunk/; revision=67423

reactos/dll/win32/kernel32/client/file/move.c

index 0f476ed..1313e20 100644 (file)
@@ -1495,17 +1495,15 @@ PrivMoveFileIdentityW(IN LPCWSTR lpSource, IN LPCWSTR lpDestination, IN DWORD dw
                                                 &ObjectAttributesSource,
                                                 DestinationHandle,
                                                 &NtDestination);
                                                 &ObjectAttributesSource,
                                                 DestinationHandle,
                                                 &NtDestination);
-#if 1 // ReactOS HACK
-            /* FIXME: To be removed once BasepNotifyTrackingService is implemented */
-            if (Status == STATUS_NOT_IMPLEMENTED)
-                Status = STATUS_SUCCESS;
-#endif
             if (!NT_SUCCESS(Status))
             {
                 if (dwFlags & PRIV_ALLOW_NON_TRACKABLE)
                 {
                     if (NT_SUCCESS(OldStatus))
                         OldStatus = Status;
             if (!NT_SUCCESS(Status))
             {
                 if (dwFlags & PRIV_ALLOW_NON_TRACKABLE)
                 {
                     if (NT_SUCCESS(OldStatus))
                         OldStatus = Status;
+
+                    /* Reset status, we allow non trackable files */
+                    Status = STATUS_SUCCESS;
                 }
             }
         }
                 }
             }
         }