From: Pali Rohár Date: Sat, 6 May 2023 16:35:20 +0000 (+0200) Subject: libpci: i386-io-windows.h: Fix error code in ERROR_PRIVILEGE_NOT_HELD code path X-Git-Tag: v3.11.0~72 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=2be154f7350826f3e08cc7425e761946ed039fab;p=pciutils.git libpci: i386-io-windows.h: Fix error code in ERROR_PRIVILEGE_NOT_HELD code path --- diff --git a/lib/i386-io-windows.h b/lib/i386-io-windows.h index fd1a54e..8089d19 100644 --- a/lib/i386-io-windows.h +++ b/lib/i386-io-windows.h @@ -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