summaryrefslogtreecommitdiff
path: root/win32.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-03-10 15:41:25 +0000
committertron <tron@openttd.org>2005-03-10 15:41:25 +0000
commit8982342c54cada80052bab8998211992b233cc64 (patch)
tree6c9bb94e048adacb3a90d29c81b5e80f2fddd350 /win32.c
parentc26177d14f68b73850d04f4b6e0cb46228bed24f (diff)
downloadopenttd-8982342c54cada80052bab8998211992b233cc64.tar.xz
(svn r1984) -Fix: [1155762] Don't try to open the non-existent menu, when F10 is pressed
Diffstat (limited to 'win32.c')
-rw-r--r--win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32.c b/win32.c
index 460e7a618..e9b636519 100644
--- a/win32.c
+++ b/win32.c
@@ -332,7 +332,7 @@ static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
return 0; // do nothing
default: /* ALT in combination with something else */
_pressed_key = MapWindowsKey(wParam) << 16;
- break;
+ return 0;
}
break;
case WM_NCMOUSEMOVE: