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

Rémi Denis-Courmont remi at remlab.net
Fri Feb 7 16:40:07 CET 2020


Ok

Le 7 février 2020 17:02:06 GMT+02:00, Steve Lhomme <robux4 at ycbcr.xyz> a écrit :
>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
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20200207/d32c55cf/attachment-0001.html>


More information about the vlc-devel mailing list