aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/PlatWin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'win32/PlatWin.cxx')
-rw-r--r--win32/PlatWin.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx
index c2967d2a5..90540baf6 100644
--- a/win32/PlatWin.cxx
+++ b/win32/PlatWin.cxx
@@ -696,7 +696,10 @@ void Window::SetTitle(const char *s) {
}
LRESULT Window::SendMessage(UINT msg, WPARAM wParam, LPARAM lParam) {
- return ::SendMessage(id, msg, wParam, lParam);
+ if (id)
+ return ::SendMessage(id, msg, wParam, lParam);
+ else
+ return 0;
}
int Window::GetDlgCtrlID() {