aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/GpgCoreInit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/GpgCoreInit.cpp')
-rw-r--r--src/core/GpgCoreInit.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/GpgCoreInit.cpp b/src/core/GpgCoreInit.cpp
index bcb57036..34ac866b 100644
--- a/src/core/GpgCoreInit.cpp
+++ b/src/core/GpgCoreInit.cpp
@@ -127,7 +127,8 @@ auto InitGpgME() -> bool {
#if defined(_WIN32) || defined(WIN32)
auto w32spawn_dir =
GlobalSettingStation::GetInstance().GetAppDir() + "/../gnupg/bin";
- if (gpgme_set_global_flag("w32-inst-dir", w32spawn_dir) != 0) {
+ if (gpgme_set_global_flag("w32-inst-dir",
+ w32spawn_dir.toUtf8().constData()) != 0) {
LOG_E() << "gpgme_set_global_flag() with argument 'w32spawn_dir' failed, "
"abort...";
return false;