summaryrefslogtreecommitdiff
path: root/drivers/windows/file_access_windows.cpp
diff options
context:
space:
mode:
authorBil Bas (Spooner) <bil.bagpuss@gmail.com>2015-02-16 20:59:16 +0000
committerBil Bas (Spooner) <bil.bagpuss@gmail.com>2015-02-16 20:59:16 +0000
commitfba2d121b4f590d2c4f4ee1dd0eb4e2d712181d2 (patch)
treed2625dccd79ccb8404e8a365556c19a2015d8aa1 /drivers/windows/file_access_windows.cpp
parent2185c018f6593e6d64b2beb62202d2291e2e008e (diff)
Corrected behaviour of File.READ_WRITE mode (fixes #378)
Diffstat (limited to 'drivers/windows/file_access_windows.cpp')
-rw-r--r--drivers/windows/file_access_windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/windows/file_access_windows.cpp b/drivers/windows/file_access_windows.cpp
index a6073cbb29..50e2b1d9e6 100644
--- a/drivers/windows/file_access_windows.cpp
+++ b/drivers/windows/file_access_windows.cpp
@@ -65,7 +65,7 @@ Error FileAccessWindows::_open(const String& p_filename, int p_mode_flags) {
else if (p_mode_flags==WRITE)
mode_string=L"wb";
else if (p_mode_flags==READ_WRITE)
- mode_string=L"wb+";
+ mode_string=L"rb+";
else
return ERR_INVALID_PARAMETER;