*SysInfo: Bug fixe.

git-svn-id: svn://ultimatepp.org/upp/trunk@9655 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
koldo 2016-03-28 13:31:44 +00:00
parent 0d64519c5b
commit 98eec355c6
2 changed files with 2 additions and 2 deletions

View file

@ -1059,7 +1059,7 @@ void GetWindowsList(Array<int64> &hWnd, Array<int64> &processId, Array<String> &
EnumWindows(EnumGetWindowsList, (LPARAM)&hWnd);
for (int i = 0; i < hWnd.GetCount(); ++i) {
if (!getAll) {
int style = GetWindowLongPtr(reinterpret_cast<HWND>(hWnd[i]), GWL_STYLE);
LONG_PTR style = GetWindowLongPtr(reinterpret_cast<HWND>(hWnd[i]), GWL_STYLE);
if (style & WS_ICONIC || style & WS_MINIMIZE)
continue;
}

View file

@ -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;