[vlc-devel] [PATCH 1/5] win32: thread: GetModuleHandle() returns a HMODULE or HINSTANCE

Steve Lhomme robux4 at ycbcr.xyz
Fri Feb 7 16:02:06 CET 2020


HANDLE is too generic.
---
 src/win32/thread.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/win32/thread.c b/src/win32/thread.c
index 07423af530b..36027cf7fee 100644
--- a/src/win32/thread.c
+++ b/src/win32/thread.c
@@ -943,7 +943,7 @@ BOOL WINAPI DllMain (HANDLE hinstDll, DWORD fdwReason, LPVOID lpvReserved)
         case DLL_PROCESS_ATTACH:
         {
 #if (_WIN32_WINNT < _WIN32_WINNT_WIN8)
-            HANDLE h = GetModuleHandle(TEXT("kernel32.dll"));
+            HMODULE h = GetModuleHandle(TEXT("kernel32.dll"));
             if (unlikely(h == NULL))
                 return FALSE;
 
-- 
2.17.1



More information about the vlc-devel mailing list