diff --git a/main.cpp b/main.cpp index aee9c01..d29fe95 100644 --- a/main.cpp +++ b/main.cpp @@ -65,7 +65,7 @@ int main(int argc, char **argv) { bool probe_only = false; std::filesystem::path executable_path = std::filesystem::weakly_canonical(*argv).parent_path(); #ifdef _WIN32 - setenv("MAGICK_CODER_MODULE_PATH", executable_path.c_str(), 0); + _setenv("MAGICK_CODER_MODULE_PATH", executable_path.c_str(), 0); #endif InitializeMagick(*argv); argc--;