Skip to content

Commit

Permalink
Fixed wrong dir test in Windows code in both 1.0 and 1.1 (thanks, Den…
Browse files Browse the repository at this point in the history
…nis!).
  • Loading branch information
icculus committed Dec 11, 2007
1 parent 565f973 commit 1aa0511
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.txt
Expand Up @@ -2,6 +2,7 @@
* CHANGELOG.
*/

12112007 - Fixed incorrect directory test in Windows code (thanks, Dennis!).
10012007 - More mingw32 fixes.
07122007 - Maybe fixed compile on mingw32.
07112007 - Fixed crash on zero-byte read/write (thanks, Ensiform!).
Expand Down
2 changes: 1 addition & 1 deletion platform/windows.c
Expand Up @@ -1208,7 +1208,7 @@ int __PHYSFS_platformClose(void *opaque)
static int doPlatformDelete(LPWSTR wpath)
{
/* If filename is a folder */
if (pGetFileAttributesW(wpath) == FILE_ATTRIBUTE_DIRECTORY)
if (pGetFileAttributesW(wpath) & FILE_ATTRIBUTE_DIRECTORY)
{
BAIL_IF_MACRO(!pRemoveDirectoryW(wpath), winApiStrError(), 0);
} /* if */
Expand Down

0 comments on commit 1aa0511

Please sign in to comment.