Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5769f8a

Browse files
committedJan 2, 2016
Change rb+ to wb+ on file access READ_WRITE to allow more use cases, closes godotengine#2278
1 parent 84f96eb commit 5769f8a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎drivers/unix/file_access_unix.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Error FileAccessUnix::_open(const String& p_path, int p_mode_flags) {
7474
else if (p_mode_flags==WRITE)
7575
mode_string="wb";
7676
else if (p_mode_flags==READ_WRITE)
77-
mode_string="rb+";
77+
mode_string="wb+";
7878
else
7979
return ERR_INVALID_PARAMETER;
8080

‎drivers/windows/file_access_windows.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Error FileAccessWindows::_open(const String& p_filename, int p_mode_flags) {
7171
else if (p_mode_flags==WRITE)
7272
mode_string=L"wb";
7373
else if (p_mode_flags==READ_WRITE)
74-
mode_string=L"rb+";
74+
mode_string=L"wb+";
7575
else
7676
return ERR_INVALID_PARAMETER;
7777

0 commit comments

Comments
 (0)
Failed to load comments.