From 6845df16333e7504abd7cceb2b5cb4e7637c73fb Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 4 May 2021 16:11:03 +0300 Subject: move away from variable-size ints --- src/process.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/process.cpp') diff --git a/src/process.cpp b/src/process.cpp index 2be7f0d..0d9837b 100644 --- a/src/process.cpp +++ b/src/process.cpp @@ -124,8 +124,7 @@ Handle shell_execute(const ShellParameters& params) { const auto lpFile = widen(params.cmd_line.get_argv0()); const auto lpParameters = widen(params.cmd_line.args_to_string()); - BOOST_STATIC_CONSTEXPR unsigned long default_fMask = - SEE_MASK_NOCLOSEPROCESS | SEE_MASK_FLAG_NO_UI; + BOOST_STATIC_CONSTEXPR uint32_t default_fMask = SEE_MASK_NOCLOSEPROCESS | SEE_MASK_FLAG_NO_UI; auto fMask = default_fMask; auto nShow = SW_SHOWDEFAULT; @@ -325,7 +324,7 @@ std::string Process::get_exe_path() { } } -std::string Process::get_resource_string(unsigned int id) { +std::string Process::get_resource_string(uint32_t id) { wchar_t* s = nullptr; const auto nch = ::LoadStringW(get_exe_module(), id, reinterpret_cast(&s), 0); @@ -337,7 +336,7 @@ std::string Process::get_resource_string(unsigned int id) { return narrow(s, nch * sizeof(wchar_t)); } -Resource Process::get_resource(unsigned int id) { +Resource Process::get_resource(uint32_t id) { const auto module = get_exe_module(); const auto src = ::FindResourceA(module, MAKEINTRESOURCEA(id), RT_RCDATA); -- cgit v1.2.3