platform/pocketpc.c
branchstable-2.0
changeset 1068 a94dfe3d3121
parent 853 8df352657911
child 1175 e55bbdb69dfd
--- a/platform/pocketpc.c	Mon Mar 15 09:44:34 2010 -0400
+++ b/platform/pocketpc.c	Wed Mar 17 17:11:21 2010 -0400
@@ -331,8 +331,8 @@
     wchar_t *w_fname = NULL;
 
     UTF8_TO_UNICODE_STACK_MACRO(w_fname, fname);
-    fileHandle = CreateFile(w_fname, mode, FILE_SHARE_READ, NULL,
-                            creation, FILE_ATTRIBUTE_NORMAL, NULL);
+    fileHandle = CreateFile(w_fname, mode, FILE_SHARE_READ | FILE_SHARE_WRITE,
+                            NULL, creation, FILE_ATTRIBUTE_NORMAL, NULL);
     __PHYSFS_smallFree(w_fname);
 
     BAIL_IF_MACRO(fileHandle == INVALID_HANDLE_VALUE, win32strerror(), NULL);