>From 6918551906f65025b008e17398982e0352038a84 Mon Sep 17 00:00:00 2001 From: Mario Kleiner <mario.kleiner...@gmail.com> Date: Tue, 22 Nov 2016 03:35:56 +0100 Subject: [PATCH] Fix typos for -DCOMPILE_MULTIMON_STUBS
Signed-off-by: Mihail Konev <k....@ya.ru> Moved-from: https://github.com/Alexpux/mingw-w64/pull/4/ --- mingw-w64-headers/include/multimon.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mingw-w64-headers/include/multimon.h b/mingw-w64-headers/include/multimon.h index 1aefb104dc48..e025915b81cb 100644 --- a/mingw-w64-headers/include/multimon.h +++ b/mingw-w64-headers/include/multimon.h @@ -127,7 +127,7 @@ extern "C" { WINBOOL IsPlatformNT() { OSVERSIONINFOA oi = { 0 }; - oi.dwOSVersionInfoSize = sizeof (osvi); + oi.dwOSVersionInfoSize = sizeof (oi); GetVersionExA ((OSVERSIONINFOA *) &oi); return (oi.dwPlatformId == VER_PLATFORM_WIN32_NT); } @@ -241,7 +241,7 @@ extern "C" { f = g_pfnGetMonitorInfo (hmon, pmi); #ifdef UNICODE if (f && !g_fMultimonPlatformNT && pmi->cbSize >= sizeof (MONITORINFOEX)) - MultiByteToWideChar (CP_ACP, 0, (LPSTR) c.ex->szDevice, -1, c.ex->szDevice, (sizeof (c.ex->szDevice) / 2)); + MultiByteToWideChar (CP_ACP, 0, (LPSTR) c.ex.szDevice, -1, c.ex.szDevice, (sizeof (c.ex.szDevice) / 2)); #endif return f; } @@ -255,9 +255,9 @@ extern "C" { pmi->dwFlags = MONITORINFOF_PRIMARY; if (pmi->cbSize >= sizeof (MONITORINFOEX)) { #ifdef UNICODE - MultiByteToWideChar (CP_ACP, 0, "DISPLAY", -1, c.ex->szDevice, (sizeof (c.ex->szDevice) / 2)); + MultiByteToWideChar (CP_ACP, 0, "DISPLAY", -1, c.ex.szDevice, (sizeof (c.ex.szDevice) / 2)); #else - lstrcpyn (c.ex->szDevice, "DISPLAY", sizeof (c.ex->szDevice)); + lstrcpyn (c.ex.szDevice, "DISPLAY", sizeof (c.ex.szDevice)); #endif } -- 2.9.2 ------------------------------------------------------------------------------ _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public