winfsp unit tests and fixes
This commit is contained in:
@@ -116,7 +116,8 @@ auto run_process_elevated(std::vector<const char *> args) -> int {
|
||||
std::string full_path;
|
||||
full_path.resize(repertory::max_path_length + 1);
|
||||
|
||||
if (::GetModuleFileNameA(nullptr, full_path.data(), MAX_PATH)) {
|
||||
if (::GetModuleFileNameA(nullptr, full_path.data(),
|
||||
repertory::max_path_length)) {
|
||||
SHELLEXECUTEINFOA sei{};
|
||||
sei.fMask = SEE_MASK_NOCLOSEPROCESS;
|
||||
sei.cbSize = sizeof(sei);
|
||||
|
Reference in New Issue
Block a user