Core/Misc: Multiple static analysis issues fixed (small optimizations and clear code)

This commit is contained in:
DDuarte
2014-09-19 03:30:02 +01:00
parent e6b7de8c97
commit cefcde9ba9
40 changed files with 72 additions and 84 deletions

View File

@@ -204,7 +204,8 @@ void WINAPI ServiceMain(DWORD argc, char *argv[])
GetModuleFileName(0, path, sizeof(path)/sizeof(path[0]));
for (i = 0; i < std::strlen(path); i++)
size_t pathLen = std::strlen(path);
for (i = 0; i < pathLen; i++)
{
if (path[i] == '\\') last_slash = i;
}