diff options
Diffstat (limited to 'uisimulator')
-rw-r--r-- | uisimulator/win32/uisw32.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/uisimulator/win32/uisw32.c b/uisimulator/win32/uisw32.c index 3cfa3aed7c..9a8351c3c5 100644 --- a/uisimulator/win32/uisw32.c +++ b/uisimulator/win32/uisw32.c | |||
@@ -19,6 +19,8 @@ | |||
19 | 19 | ||
20 | #include <windows.h> | 20 | #include <windows.h> |
21 | #include <process.h> | 21 | #include <process.h> |
22 | #include <stdlib.h> | ||
23 | #include <fcntl.h> | ||
22 | #include "uisw32.h" | 24 | #include "uisw32.h" |
23 | #include "resource.h" | 25 | #include "resource.h" |
24 | #include "button.h" | 26 | #include "button.h" |
@@ -36,6 +38,8 @@ extern void new_key(int key); | |||
36 | 38 | ||
37 | void button_event(int key, bool pressed); | 39 | void button_event(int key, bool pressed); |
38 | 40 | ||
41 | extern int _fmode; | ||
42 | |||
39 | // variables | 43 | // variables |
40 | HWND hGUIWnd; // the GUI window handle | 44 | HWND hGUIWnd; // the GUI window handle |
41 | unsigned int uThreadID; // id of mod thread | 45 | unsigned int uThreadID; // id of mod thread |
@@ -308,6 +312,9 @@ int WINAPI WinMain ( | |||
308 | (void)lpCmd; | 312 | (void)lpCmd; |
309 | (void)nShowCmd; | 313 | (void)nShowCmd; |
310 | 314 | ||
315 | /* default file mode should be O_BINARY to be consistent with rockbox */ | ||
316 | _fmode = _O_BINARY; | ||
317 | |||
311 | if (!GUIStartup ()) | 318 | if (!GUIStartup ()) |
312 | return 0; | 319 | return 0; |
313 | 320 | ||