MediaArea / MediaInfo

Convenient unified display of the most relevant technical and tag data for video and audio files.
https://MediaArea.net/MediaInfo
BSD 2-Clause "Simplified" License
1.26k stars 149 forks source link

Windows GUI: Use older API for getting system DPI, update #860

Closed JeromeMartinez closed 4 weeks ago

JeromeMartinez commented 4 weeks ago

For an unknown reason the binary is trying to load the function even if the function is not called, this was not expected, usually the crash happens only when the function is called, so we remove it completely as an hotfix for the release.

cjee21 commented 4 weeks ago

For an unknown reason the binary is trying to load the function even if the function is not called, this was not expected

Looks like it is looking for GetSystemDpiForProcess immediately on start before application code is run. Seems need to use LoadLibrary and GetProcAddress if we still want to use newer API on newer Windows.

cjee21 commented 4 weeks ago

@JeromeMartinez please take a look at #861