[vlc-commits] wasapi: use the official prototype for DllMain

Steve Lhomme git at videolan.org
Wed Jan 30 09:36:05 CET 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Jan 30 09:34:47 2019 +0100| [c50ff1da80f5bcd5ff88d08a987928648a8b07e1] | committer: Steve Lhomme

wasapi: use the official prototype for DllMain

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c50ff1da80f5bcd5ff88d08a987928648a8b07e1
---

 modules/access/wasapi.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/access/wasapi.c b/modules/access/wasapi.c
index 68ddca33f6..1aef26fbe2 100644
--- a/modules/access/wasapi.c
+++ b/modules/access/wasapi.c
@@ -31,6 +31,7 @@
 #include <assert.h>
 #include <stdlib.h>
 
+#define _DECL_DLLMAIN
 #include <vlc_common.h>
 #include <vlc_aout.h>
 #include <vlc_demux.h>
@@ -40,9 +41,7 @@
 
 static LARGE_INTEGER freq; /* performance counters frequency */
 
-BOOL WINAPI DllMain(HINSTANCE, DWORD, LPVOID); /* avoid warning */
-
-BOOL WINAPI DllMain(HINSTANCE dll, DWORD reason, LPVOID reserved)
+BOOL WINAPI DllMain(HANDLE dll, DWORD reason, LPVOID reserved)
 {
     (void) dll;
     (void) reserved;



More information about the vlc-commits mailing list