--- a/QTfrontend/util/FileEngine.cpp Sat Oct 06 00:23:27 2018 +0200
+++ b/QTfrontend/util/FileEngine.cpp Fri Oct 05 21:43:48 2018 -0400
@@ -313,8 +313,10 @@
FileEngineHandler::FileEngineHandler(char *argv0)
{
- PHYSFS_init(argv0);
-
+ if (!PHYSFS_init(argv0))
+ {
+ qDebug("PHYSFS initialization failed");
+ }
qDebug("%s", QString("[PHYSFS] Init: %1").arg(errorStr()).toLocal8Bit().constData());
}
--- a/misc/libphysfs/platform_windows.c Sat Oct 06 00:23:27 2018 +0200
+++ b/misc/libphysfs/platform_windows.c Fri Oct 05 21:43:48 2018 -0400
@@ -435,7 +435,7 @@
GOTO_MACRO(errcodeFromWinApi(), done);
else
{
- DWORD psize = 0;
+ DWORD psize = 1;
WCHAR dummy = 0;
LPWSTR wstr = NULL;
BOOL rc = 0;