diff options
Diffstat (limited to 'PC')
-rw-r--r-- | PC/bdist_wininst/install.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PC/bdist_wininst/install.c b/PC/bdist_wininst/install.c index 17cc30d..4f9ef6c 100644 --- a/PC/bdist_wininst/install.c +++ b/PC/bdist_wininst/install.c @@ -2179,7 +2179,7 @@ BOOL MyIsUserAnAdmin() // to leave the library loaded) if (0 == (shell32=LoadLibrary("shell32.dll"))) return FALSE; - if (0 == (pfnIsUserAnAdmin=(PFNIsUserAnAdmin)GetProcAddress(shell32, "IsUserAnAdmin"))) + if (NULL == (pfnIsUserAnAdmin=(PFNIsUserAnAdmin)GetProcAddress(shell32, "IsUserAnAdmin"))) return FALSE; return (*pfnIsUserAnAdmin)(); } |