From 98eec355c6fb24749f31f0180d75edb70026e280 Mon Sep 17 00:00:00 2001 From: koldo Date: Mon, 28 Mar 2016 13:31:44 +0000 Subject: [PATCH] *SysInfo: Bug fixe. git-svn-id: svn://ultimatepp.org/upp/trunk@9655 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- bazaar/SysInfo/SysInfo.cpp | 2 +- bazaar/SysInfo/mousekey.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bazaar/SysInfo/SysInfo.cpp b/bazaar/SysInfo/SysInfo.cpp index 078d72090..f2e9cf922 100644 --- a/bazaar/SysInfo/SysInfo.cpp +++ b/bazaar/SysInfo/SysInfo.cpp @@ -1059,7 +1059,7 @@ void GetWindowsList(Array &hWnd, Array &processId, Array & EnumWindows(EnumGetWindowsList, (LPARAM)&hWnd); for (int i = 0; i < hWnd.GetCount(); ++i) { if (!getAll) { - int style = GetWindowLongPtr(reinterpret_cast(hWnd[i]), GWL_STYLE); + LONG_PTR style = GetWindowLongPtr(reinterpret_cast(hWnd[i]), GWL_STYLE); if (style & WS_ICONIC || style & WS_MINIMIZE) continue; } diff --git a/bazaar/SysInfo/mousekey.cpp b/bazaar/SysInfo/mousekey.cpp index 143b78c1f..0b225fa5a 100644 --- a/bazaar/SysInfo/mousekey.cpp +++ b/bazaar/SysInfo/mousekey.cpp @@ -228,7 +228,7 @@ bool Mouse_GetPos(long &x, long &y) { _XDisplay *dpy = XOpenDisplay (NULL); if (!dpy) { SetX11ErrorHandler(); - return false; + return false; ::GetKeyboardState() :GetKey() } bool ret = false; Window root, child;