use_path fix

master
Daniel Kolesa 2017-05-09 22:21:58 +02:00
parent 60ebc1d5b8
commit 5f12c8f0b9
1 changed files with 1 additions and 1 deletions

View File

@ -570,7 +570,7 @@ OSTD_EXPORT void subprocess::open_impl(
)) { )) {
throw process_error{"unicode conversion failed"}; throw process_error{"unicode conversion failed"};
} }
if (use_path) { if (!use_path) {
cmdpath = wcmd.get(); cmdpath = wcmd.get();
} else { } else {
cmdpath = resolve_file(wcmd.get()); cmdpath = resolve_file(wcmd.get());