mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-19 20:19:13 +12:00
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:
parent
4f93735b65
commit
b2bed3ce56
1 changed files with 1 additions and 1 deletions
2
third_party/duckstation/window_info.cpp
vendored
2
third_party/duckstation/window_info.cpp
vendored
|
@ -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([]() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue