Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Patched to compile on Windows.
  • Loading branch information
icculus committed Jan 21, 2011
1 parent 899517d commit f5e0dbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/physfs.c
Expand Up @@ -798,8 +798,8 @@ static const char *find_filename_extension(const char *fname)
const char *retval = NULL;
if (fname != NULL)
{
retval = strchr(fname, '.');
const char *p = retval;
const char *p = strchr(fname, '.');
retval = p;

while (p != NULL)
{
Expand Down
4 changes: 3 additions & 1 deletion src/platform_windows.c
Expand Up @@ -971,6 +971,7 @@ void *__PHYSFS_platformOpenAppend(const char *filename)
} /* __PHYSFS_platformOpenAppend */


/* !!! FIXME: this function fails if len > 0xFFFFFFFF. */
PHYSFS_sint64 __PHYSFS_platformRead(void *opaque, void *buf, PHYSFS_uint64 len)
{
HANDLE Handle = ((WinApiFile *) opaque)->handle;
Expand All @@ -984,8 +985,9 @@ PHYSFS_sint64 __PHYSFS_platformRead(void *opaque, void *buf, PHYSFS_uint64 len)
} /* __PHYSFS_platformRead */


/* !!! FIXME: this function fails if len > 0xFFFFFFFF. */
PHYSFS_sint64 __PHYSFS_platformWrite(void *opaque, const void *buffer,
PHYSFS_uint32 size, PHYSFS_uint32 count)
PHYSFS_uint64 len)
{
HANDLE Handle = ((WinApiFile *) opaque)->handle;
DWORD CountOfBytesWritten = 0;
Expand Down

0 comments on commit f5e0dbe

Please sign in to comment.