bin: win32 resources: Fix manifest embeding
authorHugo Beauzée-Luyssen <hugo@beauzee.fr>
Wed, 8 Mar 2017 14:13:03 +0000 (15:13 +0100)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Wed, 8 Mar 2017 14:54:53 +0000 (15:54 +0100)
RT_MANIFEST is a macro that wasn't being substituted
2 was the magic number that corresponds to
ISOLATIONAWARE_MANIFEST_RESOURCE_ID, which should be used for DLLs.
Instead, use CREATEPROCESS_MANIFEST_RESOURCE_ID as we are creating a
process

bin/vlc_win32_rc.rc.in

index da77c6d..2fb1666 100644 (file)
@@ -1,6 +1,8 @@
 #define VERSION_NUMBER @VERSION_MAJOR@,@VERSION_MINOR@,@VERSION_REVISION@,@VERSION_EXTRA@
 #define VERSION_NUMBER_STR "@VERSION_MAJOR@,@VERSION_MINOR@,@VERSION_REVISION@,@VERSION_EXTRA@"
 
+#include <winuser.h>
+
 VLC_ICON ICON "vlc.ico"
 
 1 VERSIONINFO
@@ -30,4 +32,4 @@ BEGIN
   END
 END
 
-2 RT_MANIFEST "vlc.exe.manifest"
+CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "vlc.exe.manifest"