r929 - branches/stable-1.0 branches/stable-1.0/platform trunk trunk/platform
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Wed Feb 13 00:48:57 EST 2008
Author: icculus
Date: 2008-02-13 00:48:57 -0500 (Wed, 13 Feb 2008)
New Revision: 929
Modified:
branches/stable-1.0/CHANGELOG
branches/stable-1.0/platform/win32.c
trunk/CHANGELOG.txt
trunk/platform/windows.c
Log:
Minor Windows fix (thanks, fydo!).
Modified: branches/stable-1.0/CHANGELOG
===================================================================
--- branches/stable-1.0/CHANGELOG 2008-02-02 02:32:48 UTC (rev 928)
+++ branches/stable-1.0/CHANGELOG 2008-02-13 05:48:57 UTC (rev 929)
@@ -4,6 +4,7 @@
-- stuff in the stable-1.0 branch, backported from 2.0.0 dev branch, etc ---
+02132008 - Minor Windows fix (thanks, fydo!).
01222008 - Added zlib README, and updated LICENSE.txt.
01212008 - Fixed HTTP header in physfshttpd.c.
12112007 - Fixed incorrect directory test in Windows code (thanks, Buginator!).
Modified: branches/stable-1.0/platform/win32.c
===================================================================
--- branches/stable-1.0/platform/win32.c 2008-02-02 02:32:48 UTC (rev 928)
+++ branches/stable-1.0/platform/win32.c 2008-02-13 05:48:57 UTC (rev 929)
@@ -78,8 +78,7 @@
{
static TCHAR msgbuf[255];
TCHAR *ptr = msgbuf;
-
- FormatMessage(
+ DWORD rc = FormatMessage(
FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
NULL,
@@ -90,6 +89,9 @@
NULL
);
+ if (rc == 0)
+ msgbuf = '\0'; /* oh well. */
+
/* chop off newlines. */
for (ptr = msgbuf; *ptr; ptr++)
{
Modified: trunk/CHANGELOG.txt
===================================================================
--- trunk/CHANGELOG.txt 2008-02-02 02:32:48 UTC (rev 928)
+++ trunk/CHANGELOG.txt 2008-02-13 05:48:57 UTC (rev 929)
@@ -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.
Modified: trunk/platform/windows.c
===================================================================
--- trunk/platform/windows.c 2008-02-02 02:32:48 UTC (rev 928)
+++ trunk/platform/windows.c 2008-02-13 05:48:57 UTC (rev 929)
@@ -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++)
{
More information about the physfs-commits
mailing list