Skip to content
Snippets Groups Projects
Commit 19b3e069 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

test: common: don't use wchar_t string if they are NULL

parent 9245cc70
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,8 @@ static inline std::string getTempDir()
WCHAR path[MAX_PATH];
GetTempPathW( MAX_PATH, path );
auto utf8 = medialibrary::charset::FromWide( path );
if ( !utf8 )
return {};
return utf8.get();
#else
return "/tmp/";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment