summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authornakeee <nakeee@gmail.com>2008-12-02 22:52:02 +0000
committernakeee <nakeee@gmail.com>2008-12-02 22:52:02 +0000
commitab36429fb05c47e4d7e2fd3aa053f1e0c4d3e596 (patch)
treec3f13c08ba83ac6668004ef561cb64dc067368f2 /Source/Core
parentd8a26fe9e008837cb3a3bab20a40177a2ef2d445 (diff)
making sense of if
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1380 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_fs.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_fs.cpp b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_fs.cpp
index d55d4524ec..4177641d1e 100644
--- a/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_fs.cpp
+++ b/Source/Core/Core/Src/IPC_HLE/WII_IPC_HLE_Device_fs.cpp
@@ -28,7 +28,7 @@
extern std::string HLE_IPC_BuildFilename(const char* _pFilename, int _size);
#define FS_RESULT_OK (0)
-#define FS_DIRFILE_NOT_FOUND (-6)
+#define FS_DIRFILE_NOT_FOUND (-6)
#define FS_INVALID_ARGUMENT (-101)
#define FS_FILE_EXIST (-105)
#define FS_FILE_NOT_EXIST (-106)
@@ -116,9 +116,9 @@ bool CWII_IPC_HLE_Device_fs::IOCtlV(u32 _CommandAddress)
the handle, so perhaps this is better
*/
- if (!File::Exists(Filename.c_str()) && !File::IsDirectory(Filename.c_str()))
+ if (!File::Exists(Filename.c_str()))
{
- LOG(WII_IPC_FILEIO, " Not a file and not a directory - return FS_DIRFILE_NOT_FOUND", Filename.c_str());
+ LOG(WII_IPC_FILEIO, " directory does not exist - return FS_DIRFILE_NOT_FOUND", Filename.c_str());
ReturnValue = FS_DIRFILE_NOT_FOUND;
break;
}