From 8c132bdae5190f969776c0fac44a17f97b2e0812 Mon Sep 17 00:00:00 2001 From: NunoRamiro Date: Sun, 17 Aug 2008 19:28:24 +0000 Subject: - 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 --- Source/Core/Common/Src/FileUtil.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/Common/Src/FileUtil.cpp') 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 +} -- cgit v1.2.3