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
commit2614139c4d600424794987661c6415a6d4b15bb8 (patch)
tree88e25e0385f416bca019aac82069f7ade60697d8
parent3b7ec6b9b2dd4fad876385c4a21d73318c7f5142 (diff)
downloadscintilla-mirror-2614139c4d600424794987661c6415a6d4b15bb8.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;
}