More cleanups.
--- a/platform/win32.c Fri Apr 12 23:51:47 2002 +0000
+++ b/platform/win32.c Sat Apr 13 00:56:12 2002 +0000
@@ -3,13 +3,9 @@
*
* Please see the file LICENSE in the source's root directory.
*
- * This file written by Ryan C. Gordon.
+ * This file written by Ryan C. Gordon, and made sane by Gregory S. Read.
*/
-#if (defined __STRICT_ANSI__)
-#define __PHYSFS_DOING_STRICT_ANSI__
-#endif
-
#include <windows.h>
#include <userenv.h>
#include <stdio.h>
@@ -62,6 +58,9 @@
{
if (GetDriveType(drive_str) == DRIVE_CDROM)
{
+
+ /* !!! FIXME: Make sure there's really a disc in the drive? */
+
char **tmp = realloc(retval, sizeof (char *) * cd_count + 1);
if (tmp)
{
@@ -146,7 +145,7 @@
{
char *userdir = NULL;
- if(runningNT)
+ if (runningNT)
{
userdir = ProfileDirectory;
}
@@ -441,7 +440,7 @@
*
* Return zero if there was a catastrophic failure and non-zero otherwise.
*/
-static int doNTInit()
+static int doNTInit(void)
{
DWORD pathsize = 0;
char TempProfileDirectory[1];
@@ -530,7 +529,7 @@
*
* Return zero if there was a catastrophic failure and non-zero otherwise.
*/
-static int doNTDeinit()
+static int doNTDeinit(void)
{
if(CloseHandle(AccessTokenHandle) != S_OK)
{