diff options
Diffstat (limited to 'src/modules/idle/idle.cpp')
-rw-r--r-- | src/modules/idle/idle.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/modules/idle/idle.cpp b/src/modules/idle/idle.cpp index dbd684b675..2fd41083d1 100644 --- a/src/modules/idle/idle.cpp +++ b/src/modules/idle/idle.cpp @@ -117,12 +117,8 @@ BOOL InitWTSAPI() HMODULE hDll = LoadLibraryA("wtsapi32.dll");
if (hDll) {
_WTSFreeMemory = (VOID (WINAPI *)(PVOID))GetProcAddress(hDll, "WTSFreeMemory");
- #ifdef UNICODE
- _WTSQuerySessionInformation = (BOOL (WINAPI *)(HANDLE, DWORD, WTS_INFO_CLASS, PVOID, DWORD*))GetProcAddress(hDll, "WTSQuerySessionInformationW");
- #else
- _WTSQuerySessionInformation = (BOOL (WINAPI *)(HANDLE, DWORD, WTS_INFO_CLASS, PVOID, DWORD*))GetProcAddress(hDll, "WTSQuerySessionInformationA");
- #endif
-
+ _WTSQuerySessionInformation = (BOOL (WINAPI *)(HANDLE, DWORD, WTS_INFO_CLASS, PVOID, DWORD*))GetProcAddress(hDll, "WTSQuerySessionInformationW");
+
if (_WTSFreeMemory && _WTSQuerySessionInformation) return 1;
}
return 0;
|