mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-27 14:57:09 -05:00
parent
422fd91255
commit
2583cc4aa4
@ -31,7 +31,11 @@ inline std::string StatusToErrorMessage(OSStatus status)
|
|||||||
return std::to_string(status);
|
return std::to_string(status);
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string result(CFStringGetCStringPtr(text, kCFStringEncodingUTF8));
|
auto msg = CFStringGetCStringPtr(text, kCFStringEncodingUTF8);
|
||||||
|
std::string result;
|
||||||
|
if (msg) {
|
||||||
|
result = msg;
|
||||||
|
}
|
||||||
CFRelease(text);
|
CFRelease(text);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user