summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/window.cc')
-rw-r--r--winsup/cygwin/window.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/winsup/cygwin/window.cc b/winsup/cygwin/window.cc
index 7c67fae26..80e95a143 100644
--- a/winsup/cygwin/window.cc
+++ b/winsup/cygwin/window.cc
@@ -121,7 +121,7 @@ Winmain (VOID *)
while (GetMessage (&msg, ourhwnd, 0, 0) == TRUE)
DispatchMessage (&msg);
- return msg.wParam;
+ ExitThread (0);
}
HWND __stdcall
@@ -141,13 +141,6 @@ gethwnd ()
return ourhwnd;
}
-void __stdcall
-window_terminate ()
-{
- if (ourhwnd)
- SendMessage (ourhwnd, WM_DESTROY, 0, 0);
-}
-
extern "C" int
setitimer (int which, const struct itimerval *value, struct itimerval *oldvalue)
{