Patched to compile on Windows.
This commit is contained in:
parent
899517dc85
commit
f5e0dbe78b
|
@ -798,8 +798,8 @@ static const char *find_filename_extension(const char *fname)
|
||||||
const char *retval = NULL;
|
const char *retval = NULL;
|
||||||
if (fname != NULL)
|
if (fname != NULL)
|
||||||
{
|
{
|
||||||
retval = strchr(fname, '.');
|
const char *p = strchr(fname, '.');
|
||||||
const char *p = retval;
|
retval = p;
|
||||||
|
|
||||||
while (p != NULL)
|
while (p != NULL)
|
||||||
{
|
{
|
||||||
|
|
|
@ -971,6 +971,7 @@ void *__PHYSFS_platformOpenAppend(const char *filename)
|
||||||
} /* __PHYSFS_platformOpenAppend */
|
} /* __PHYSFS_platformOpenAppend */
|
||||||
|
|
||||||
|
|
||||||
|
/* !!! FIXME: this function fails if len > 0xFFFFFFFF. */
|
||||||
PHYSFS_sint64 __PHYSFS_platformRead(void *opaque, void *buf, PHYSFS_uint64 len)
|
PHYSFS_sint64 __PHYSFS_platformRead(void *opaque, void *buf, PHYSFS_uint64 len)
|
||||||
{
|
{
|
||||||
HANDLE Handle = ((WinApiFile *) opaque)->handle;
|
HANDLE Handle = ((WinApiFile *) opaque)->handle;
|
||||||
|
@ -984,8 +985,9 @@ PHYSFS_sint64 __PHYSFS_platformRead(void *opaque, void *buf, PHYSFS_uint64 len)
|
||||||
} /* __PHYSFS_platformRead */
|
} /* __PHYSFS_platformRead */
|
||||||
|
|
||||||
|
|
||||||
|
/* !!! FIXME: this function fails if len > 0xFFFFFFFF. */
|
||||||
PHYSFS_sint64 __PHYSFS_platformWrite(void *opaque, const void *buffer,
|
PHYSFS_sint64 __PHYSFS_platformWrite(void *opaque, const void *buffer,
|
||||||
PHYSFS_uint32 size, PHYSFS_uint32 count)
|
PHYSFS_uint64 len)
|
||||||
{
|
{
|
||||||
HANDLE Handle = ((WinApiFile *) opaque)->handle;
|
HANDLE Handle = ((WinApiFile *) opaque)->handle;
|
||||||
DWORD CountOfBytesWritten = 0;
|
DWORD CountOfBytesWritten = 0;
|
||||||
|
|
Loading…
Reference in New Issue