diff options
| author | NunoRamiro <NunoRamiro@gmail.com> | 2008-08-17 19:28:24 +0000 |
|---|---|---|
| committer | NunoRamiro <NunoRamiro@gmail.com> | 2008-08-17 19:28:24 +0000 |
| commit | 8c132bdae5190f969776c0fac44a17f97b2e0812 (patch) | |
| tree | ac5bfe41b63d6490b3891acaad62e170b81ee17a /Source/Core/Common/Src/FileUtil.cpp | |
| parent | e3f3a7a41d00627e67b2802e21c114d22505e7d8 (diff) | |
- Fixed: Crash when loading a rom with an unknown file extension.
- Fixed: Crash when stopping a game.
- Improved: DirectX Plugin.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@237 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/FileUtil.cpp')
| -rw-r--r-- | Source/Core/Common/Src/FileUtil.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/Src/FileUtil.cpp b/Source/Core/Common/Src/FileUtil.cpp index b91adc0053..bca161268c 100644 --- a/Source/Core/Common/Src/FileUtil.cpp +++ b/Source/Core/Common/Src/FileUtil.cpp @@ -28,7 +28,7 @@ bool File::IsDirectory(const std::string &filename) { std::string SanitizePath(const std::string &filename) {
std::string copy = filename;
- for (int i = 0; i < copy.size(); i++)
+ for (size_t i = 0; i < copy.size(); i++)
if (copy[i] == '/')
copy[i] = '\\';
return copy;
@@ -81,4 +81,4 @@ bool File::CreateDir(const std::string &path) #else
// TODO: Insert POSIX code here.
#endif
-}
\ No newline at end of file +}
|
