mirror of
https://github.com/TheCruZ/kdmapper.git
synced 2026-07-10 01:30:04 +00:00
Update KDSymbolsHandler.cpp
- Changed variable 'std::string cmd' -> 'std::wstring cmdW'. - Changed function call 'system()' -> '_wsystem()'. This allows to use spaces and non-ASCII symbols in .exe path
This commit is contained in:
parent
03a511da78
commit
8362fc6b7f
1 changed files with 2 additions and 2 deletions
|
|
@ -23,8 +23,8 @@ bool KDSymbolsHandler::ReloadFile(std::wstring path, std::wstring updater) {
|
|||
//delete old file
|
||||
std::filesystem::remove(path);
|
||||
|
||||
std::string cmd = "\"" + std::string(updater.begin(), updater.end()) + "\"";
|
||||
auto exitCode = system(cmd.c_str());
|
||||
std::wstring cmdW = L"\"" + updater + L"\"";
|
||||
auto exitCode = _wsystem(cmdW.c_str());
|
||||
if (exitCode != 0) {
|
||||
std::wcout << L"[-] Failed to update offsets" << std::endl;
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue