Skip to content

Commit

Permalink
rhosimulator/win32: command line parsing fixed for slashes (now both …
Browse files Browse the repository at this point in the history
…'\' and '/' work fine)
  • Loading branch information
timashev committed Apr 11, 2012
1 parent 365537d commit 652795f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platform/wm/rhodes/Rhodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ bool CRhodesModule::ParseCommandLine(LPCTSTR lpCmdLine, HRESULT* pnRetCode ) thr
}
m_strRootPath = path;
free(path);
std::replace( m_strRootPath.begin(), m_strRootPath.end(), '\\', '/');
}
} else if (wcsncmp(lpszToken, _T("rhodespath"),10)==0)
{
Expand All @@ -275,6 +276,7 @@ bool CRhodesModule::ParseCommandLine(LPCTSTR lpCmdLine, HRESULT* pnRetCode ) thr
if (path) {
m_strRhodesPath = path;
free(path);
std::replace( m_strRhodesPath.begin(), m_strRhodesPath.end(), '\\', '/');
}
} /* else if (wcsncmp(lpszToken, _T("appname"),7)==0)
{
Expand Down

0 comments on commit 652795f

Please sign in to comment.