- DebugSetProcessKillOnExit: Use SetLastErrorByStatus for NTSTATUS codes
authorStefan Ginsberg <stefanginsberg@gmail.com>
Tue, 6 Jan 2009 19:58:53 +0000 (19:58 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Tue, 6 Jan 2009 19:58:53 +0000 (19:58 +0000)
svn path=/trunk/; revision=38617

reactos/dll/win32/kernel32/debug/debugger.c

index 8307530..3685539 100644 (file)
@@ -447,7 +447,7 @@ DebugSetProcessKillOnExit(IN BOOL KillOnExit)
     if (!NT_SUCCESS(Status))
     {
         /* Fail */
-        SetLastError(Status);
+        SetLastErrorByStatus(Status);
         return FALSE;
     }