Skip to content

Commit 7e9f291

Browse files
committed
MainWindow: Fix sscanf type/width specifiers for DWORD
1 parent 75bc9a4 commit 7e9f291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Core/DolphinQt/MainWindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,7 @@ void MainWindow::SetFullScreenResolution(bool fullscreen)
11901190
DEVMODE screen_settings;
11911191
memset(&screen_settings, 0, sizeof(screen_settings));
11921192
screen_settings.dmSize = sizeof(screen_settings);
1193-
sscanf(Config::Get(Config::MAIN_FULLSCREEN_DISPLAY_RES).c_str(), "%dx%d",
1193+
sscanf(Config::Get(Config::MAIN_FULLSCREEN_DISPLAY_RES).c_str(), "%lux%lu",
11941194
&screen_settings.dmPelsWidth, &screen_settings.dmPelsHeight);
11951195
screen_settings.dmBitsPerPel = 32;
11961196
screen_settings.dmFields = DM_BITSPERPEL | DM_PELSWIDTH | DM_PELSHEIGHT;

0 commit comments

Comments
 (0)