diff --git a/lib/libimhex/source/api/imhex_api.cpp b/lib/libimhex/source/api/imhex_api.cpp index 46a6f8d2e..f12891b63 100644 --- a/lib/libimhex/source/api/imhex_api.cpp +++ b/lib/libimhex/source/api/imhex_api.cpp @@ -862,7 +862,7 @@ namespace hex { EventImHexClosing::subscribe([executablePath, updateTypeString] { hex::executeCommand( - hex::format("{} {}", + hex::format("\"{}\" \"{}\"", wolv::util::toUTF8String(executablePath), updateTypeString )