merge
authoralfadur
Fri, 05 Oct 2018 21:43:48 -0400
changeset 13871 5df16be168ff
parent 13868 26ebbf9717fd (current diff)
parent 13870 a966b1914792 (diff)
child 13872 65fe3933b19d
merge
--- 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;