aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--win32/PlatWin.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index 3706c2bc0..e92ef943c 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -1889,7 +1889,10 @@ static RECT RectFromMonitor(HMONITOR hMonitor) {
}
RECT rc = {0, 0, 0, 0};
if (::SystemParametersInfoA(SPI_GETWORKAREA, 0, &rc, 0) == 0) {
- rc = {0, 0, 0, 0};
+ rc.left = 0;
+ rc.top = 0;
+ rc.right = 0;
+ rc.bottom = 0;
}
return rc;
}