[MSVCRT]open accepts spaces in the mode string

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Sat Jan 16 10:21:48 CST 2010


---
 dlls/msvcrt/file.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/msvcrt/file.c b/dlls/msvcrt/file.c
index df42d47..a9678ed 100644
--- a/dlls/msvcrt/file.c
+++ b/dlls/msvcrt/file.c
@@ -1044,6 +1044,7 @@ static int msvcrt_get_flags(const MSVCRT_wchar_t* mode, int *open_flags, int* st
       *open_flags &= ~MSVCRT__O_BINARY;
       break;
     case '+':
+    case ' ':
       break;
     default:
       FIXME(":unknown flag %c not supported\n",mode[-1]);
-- 
1.6.4.2




More information about the wine-patches mailing list