summaryrefslogtreecommitdiff
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
commit2116fad350f787ad6552942203eaca4034d655eb (patch)
tree6c9bb94e048adacb3a90d29c81b5e80f2fddd350
parent54a40903e3d7e40854952dbdf9d4eff009680bb3 (diff)
downloadopenttd-2116fad350f787ad6552942203eaca4034d655eb.tar.xz
(svn r1984) -Fix: [1155762] Don't try to open the non-existent menu, when F10 is pressed
-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: