Minor Windows fix (thanks, fydo!).
authorRyan C. Gordon <icculus@icculus.org>
Wed, 13 Feb 2008 05:48:57 +0000
changeset 926 0b5b2af3200d
parent 924 fb5bc1b528c9
child 928 0e37b8163248
Minor Windows fix (thanks, fydo!).
CHANGELOG.txt
platform/windows.c
--- a/CHANGELOG.txt	Sat Feb 02 02:32:48 2008 +0000
+++ b/CHANGELOG.txt	Wed Feb 13 05:48:57 2008 +0000
@@ -2,6 +2,7 @@
  * CHANGELOG.
  */
 
+02132008 - Minor Windows fix (thanks, fydo!).
 02012008 - lzma fixes (thanks, eH!).
 01222008 - Upgraded lzma sdk, lzma.c improvements (thanks, Dennis!).
            Added zlib README, and updated LICENSE.txt.
--- a/platform/windows.c	Sat Feb 02 02:32:48 2008 +0000
+++ b/platform/windows.c	Wed Feb 13 05:48:57 2008 +0000
@@ -339,6 +339,9 @@
                     msgbuf, __PHYSFS_ARRAYLEN(msgbuf),
                     NULL);
 
+    if (rc == 0)
+        msgbuf[0] = '\0';  /* oh well. */
+
     /* chop off newlines. */
     for (ptr = msgbuf; *ptr; ptr++)
     {