fix
All checks were successful
BlockStorage/repertory/pipeline/head This commit looks good

This commit is contained in:
2025-09-08 14:26:56 -05:00
parent 99b50713ce
commit c24bd2d615
3 changed files with 4 additions and 12 deletions

View File

@@ -173,7 +173,7 @@ auto directory::create_directory(std::string_view path) const
}
#if defined(_WIN32)
[[maybe_unused]] static const utils::com_init_wrapper wrapper;
[[maybe_unused]] thread_local const utils::com_init_wrapper wrapper;
auto res = ::SHCreateDirectory(nullptr,
utils::string::from_utf8(abs_path).c_str());

View File

@@ -66,7 +66,7 @@ auto get_last_error_code() -> DWORD { return ::GetLastError(); }
auto get_local_app_data_directory() -> const std::string & {
REPERTORY_USES_FUNCTION_NAME();
[[maybe_unused]] static const utils::com_init_wrapper wrapper;
[[maybe_unused]] thread_local const utils::com_init_wrapper wrapper;
static std::string app_data = ([]() -> std::string {
PWSTR local_app_data{};
@@ -145,7 +145,7 @@ auto run_process_elevated(std::vector<const char *> args) -> int {
void set_last_error_code(DWORD error_code) { ::SetLastError(error_code); }
auto get_startup_folder() -> std::wstring {
[[maybe_unused]] static const utils::com_init_wrapper wrapper;
[[maybe_unused]] thread_local const utils::com_init_wrapper wrapper;
PWSTR raw{nullptr};
auto result = ::SHGetKnownFolderPath(FOLDERID_Startup, 0, nullptr, &raw);
@@ -165,7 +165,7 @@ auto get_startup_folder() -> std::wstring {
auto create_shortcut(const shortcut_cfg &cfg, bool overwrite_existing) -> bool {
REPERTORY_USES_FUNCTION_NAME();
[[maybe_unused]] static const utils::com_init_wrapper wrapper;
[[maybe_unused]] thread_local const utils::com_init_wrapper wrapper;
const auto hr_hex = [](HRESULT result) -> std::string {
std::ostringstream oss;