Fix windows build

`LoadLibrary` is a preprocessor that will use either `LoadLibraryW` or
`LoadLibraryA` depending on if `UNICODE` is defined or not.
In this case we are using an ASCII string literal and and can explicitly
specify the usage of `LoadLibraryA` with an ASCII literal.
This commit is contained in:
Wunkolo 2024-03-11 09:03:09 -07:00
parent 4f93735b65
commit b2bed3ce56

View file

@ -16,7 +16,7 @@ static bool GetRefreshRateFromDWM(HWND hwnd, float* refresh_rate)
if (!load_tried)
{
load_tried = true;
dwm_module = LoadLibrary(L"dwmapi.dll");
dwm_module = LoadLibraryA("dwmapi.dll");
if (dwm_module)
{
std::atexit([]() {