Skip to content

win32: only load system DLL's from %windows%\system32

Steve Lhomme requested to merge robUx4/vlc:load_system32 into master

Similar to ba108368 for the other system DLL's.

The SetDefaultDllDirectories(LOAD_LIBRARY_SEARCH_SYSTEM32); call still allows DLL's from the VLC or app folder. But these system DLL's should only come from the system.

We don't need wide char names for ASCII DLL names. LoadLibraryExA/LoadLibraryExW are equally available on Windows and UWP (since 19H1).

The DXVA/D3D9/DMO have not been patched as they should not use LoadLibrary anymore.

Edited by Steve Lhomme

Merge request reports

Loading