mirror of https://code.videolan.org/videolan/vlc
winvlc: use the enum policy when it's known
At some point HAVE_PROCESS_MITIGATION_IMAGE_LOAD_POLICY will go away
since we will only support mingw-w64 versions that have it.
36d7b92bbc
This commit is contained in:
parent
b10437cbc2
commit
6e87bfd484
|
@ -104,7 +104,11 @@ static void PrioritizeSystem32(void)
|
|||
#endif
|
||||
PROCESS_MITIGATION_IMAGE_LOAD_POLICY m = { .Flags = 0 };
|
||||
m.PreferSystem32Images = 1;
|
||||
SetProcessMitigationPolicy( 10 /* ProcessImageLoadPolicy */, &m, sizeof( m ) );
|
||||
#if defined(__MINGW64_VERSION_MAJOR) && __MINGW64_VERSION_MAJOR < 6
|
||||
SetProcessMitigationPolicy( (PROCESS_MITIGATION_POLICY)10, &m, sizeof( m ) );
|
||||
#else
|
||||
SetProcessMitigationPolicy( ProcessImageLoadPolicy, &m, sizeof( m ) );
|
||||
#endif
|
||||
}
|
||||
|
||||
static void vlc_kill(void *data)
|
||||
|
|
Loading…
Reference in New Issue