aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2013-07-03 17:28:49 +1000
committerNeil <nyamatongwe@gmail.com>2013-07-03 17:28:49 +1000
commit33ff9a100d3820cba945f5f1de0925fc6c28eadd (patch)
treef428d7d7da61ec2cdb0ada53083a75c28b7d3e83
parent4dd0738fc3d9b296a9b5b1935ee0334c9f611e32 (diff)
downloadscintilla-mirror-33ff9a100d3820cba945f5f1de0925fc6c28eadd.tar.gz
Make work with older compilers.
-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;
}