diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-18 04:05:48 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-18 04:08:01 +0300 |
commit | 512a25658dd6b737a16b91fb7eba43deef004d87 (patch) | |
tree | e9b5fe69f55d9e1ca124b13814f01f280778c165 /src/cmd_line.cpp | |
parent | Process: add get_exe_path() (diff) | |
download | winapi-common-512a25658dd6b737a16b91fb7eba43deef004d87.tar.gz winapi-common-512a25658dd6b737a16b91fb7eba43deef004d87.zip |
add Sid class
It's another newcomer straight from privilege-check.
Diffstat (limited to '')
-rw-r--r-- | src/cmd_line.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cmd_line.cpp b/src/cmd_line.cpp index eaf505f..d3dc781 100644 --- a/src/cmd_line.cpp +++ b/src/cmd_line.cpp @@ -6,6 +6,7 @@ #include <winapi/cmd_line.hpp> #include <winapi/error.hpp> #include <winapi/utf8.hpp> +#include <winapi/utils.hpp> #include <boost/algorithm/string.hpp> #include <boost/config.hpp> @@ -34,10 +35,6 @@ std::vector<std::string> narrow_all(int argc, wchar_t** argv) { return utf; } -struct LocalDelete { - void operator()(wchar_t* argv[]) const { ::LocalFree(argv); } -}; - CommandLine do_parse(std::wstring src) { boost::trim(src); if (src.empty()) { |