aboutsummaryrefslogtreecommitdiffstats
path: root/android/utils/mapfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'android/utils/mapfile.c')
-rw-r--r--android/utils/mapfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/android/utils/mapfile.c b/android/utils/mapfile.c
index c8ba8e5..102dfd8 100644
--- a/android/utils/mapfile.c
+++ b/android/utils/mapfile.c
@@ -34,8 +34,8 @@ mapfile_open(const char* path, int oflag, int share_mode)
{
#ifdef WIN32
DWORD win32_share;
- DWORD win32_desired_access;
- DWORD win32_disposition;
+ DWORD win32_desired_access = GENERIC_READ;
+ DWORD win32_disposition = OPEN_EXISTING;
DWORD win32_flags;
/* Convert to Win32 desired access. */