summaryrefslogtreecommitdiff
path: root/uisimulator
diff options
context:
space:
mode:
authorHardeep Sidhu <dyp@pobox.com>2003-05-30 00:29:50 +0000
committerHardeep Sidhu <dyp@pobox.com>2003-05-30 00:29:50 +0000
commite7d028e2fdd79a3e5859c3970cfa1d1519a47ccb (patch)
treeec78eccd95f70152241a946e5c070bae01685c03 /uisimulator
parenta4d6ad77c4cd5929abee737a86f2e1d7f20ca0d7 (diff)
downloadrockbox-e7d028e2fdd79a3e5859c3970cfa1d1519a47ccb.tar.gz
rockbox-e7d028e2fdd79a3e5859c3970cfa1d1519a47ccb.zip
Default file mode should be O_BINARY to be consistent with rockbox
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3708 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/win32/uisw32.c7
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
37void button_event(int key, bool pressed); 39void button_event(int key, bool pressed);
38 40
41extern int _fmode;
42
39// variables 43// variables
40HWND hGUIWnd; // the GUI window handle 44HWND hGUIWnd; // the GUI window handle
41unsigned int uThreadID; // id of mod thread 45unsigned 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