]> mj.ucw.cz Git - pciutils.git/commitdiff
libpci: i386-io-windows.h: Fix error code in ERROR_PRIVILEGE_NOT_HELD code path
authorPali Rohár <pali@kernel.org>
Sat, 6 May 2023 16:35:20 +0000 (18:35 +0200)
committerMartin Mares <mj@ucw.cz>
Fri, 29 Dec 2023 13:30:02 +0000 (14:30 +0100)
lib/i386-io-windows.h

index fd1a54e24b73e2a4664787936d75557d2eb2064d..8089d19b3a28922bfe93d674b4a0a801dc3966cb 100644 (file)
@@ -1143,7 +1143,7 @@ SetProcessUserModeIOPL(VOID)
    */
 
   if (!LookupPrivilegeValue(NULL, SE_TCB_NAME, &luid_tcb_privilege))
-    goto err_not_implemented;
+    goto err_privilege_not_held;
 
   /*
    * If the current thread has already Tcb privilege enabled then there