aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNadia Holmquist Pedersen <nadia@nhp.sh>2019-12-04 22:54:30 +0100
committerNadia Holmquist Pedersen <nadia@nhp.sh>2019-12-04 22:54:30 +0100
commit959c37ead74968ef3bf8b66f852307f6e9fb10e3 (patch)
tree5b9b56fda22803b34f1910973959e1f0b58004e0 /src
parent7af658f0897c6d6ad1f67b9d7a9bc60955c029a0 (diff)
Open with rb instead of r in OpenDataFile to avoid potential problems with Windows.
Diffstat (limited to 'src')
-rw-r--r--src/libui_sdl/Platform.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libui_sdl/Platform.cpp b/src/libui_sdl/Platform.cpp
index 5cbf344..8942927 100644
--- a/src/libui_sdl/Platform.cpp
+++ b/src/libui_sdl/Platform.cpp
@@ -316,7 +316,7 @@ FILE* OpenLocalFile(const char* path, const char* mode)
FILE* OpenDataFile(const char* path)
{
- return OpenLocalFile(path, "r");
+ return OpenLocalFile(path, "rb");
}
#endif