1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Hardeep Sidhu 2003-05-30 00:29:50 +00:00
parent a4d6ad77c4
commit e7d028e2fd

View file

@ -19,6 +19,8 @@
#include <windows.h>
#include <process.h>
#include <stdlib.h>
#include <fcntl.h>
#include "uisw32.h"
#include "resource.h"
#include "button.h"
@ -36,6 +38,8 @@ extern void new_key(int key);
void button_event(int key, bool pressed);
extern int _fmode;
// variables
HWND hGUIWnd; // the GUI window handle
unsigned int uThreadID; // id of mod thread
@ -308,6 +312,9 @@ int WINAPI WinMain (
(void)lpCmd;
(void)nShowCmd;
/* default file mode should be O_BINARY to be consistent with rockbox */
_fmode = _O_BINARY;
if (!GUIStartup ())
return 0;