diff options
| author | Tannin <sherb@gmx.net> | 2016-05-15 14:58:54 +0200 |
|---|---|---|
| committer | Tannin <sherb@gmx.net> | 2016-05-15 14:58:54 +0200 |
| commit | 5665be7fd126c435ed4ad4ceb8c01f0e6eb16975 (patch) | |
| tree | 1a9d9bdbb20d492a1b434e916b4be87cafd5a415 /src/helper.cpp | |
| parent | e522afa63b81301caf886c5e351de2790e5b8182 (diff) | |
fixed calls to helper.exe using wrong path
Diffstat (limited to 'src/helper.cpp')
| -rw-r--r-- | src/helper.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/helper.cpp b/src/helper.cpp index 41784fe5..b7fc866c 100644 --- a/src/helper.cpp +++ b/src/helper.cpp @@ -62,7 +62,7 @@ static bool helperExec(LPCWSTR moDirectory, LPCWSTR commandLine) }
-bool init(const std::wstring &moDirectory)
+bool init(const std::wstring &moPath, const std::wstring &dataPath)
{
DWORD userNameLen = UNLEN + 1;
wchar_t userName[UNLEN + 1];
@@ -74,22 +74,22 @@ bool init(const std::wstring &moDirectory) wchar_t *commandLine = new wchar_t[32768];
_snwprintf(commandLine, 32768, L"init \"%ls\" \"%ls\"",
- moDirectory.c_str(), userName);
+ dataPath.c_str(), userName);
- bool res = helperExec(moDirectory.c_str(), commandLine);
+ bool res = helperExec(moPath.c_str(), commandLine);
delete [] commandLine;
return res;
}
-bool backdateBSAs(const std::wstring &moDirectory, const std::wstring &dataPath)
+bool backdateBSAs(const std::wstring &moPath, const std::wstring &dataPath)
{
wchar_t *commandLine = new wchar_t[32768];
_snwprintf(commandLine, 32768, L"backdateBSA \"%ls\"",
dataPath.c_str());
- bool res = helperExec(moDirectory.c_str(), commandLine);
+ bool res = helperExec(moPath.c_str(), commandLine);
delete [] commandLine;
return res;
|
