Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Commit c5443fb

Browse files
committed
Fix compile error.
1 parent b40bdcd commit c5443fb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

appshell/appshell_extensions_mac.mm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,8 @@ - (void) timeoutTimer:(NSTimer*)timer
604604

605605
int32 ShowFolderInOSWindow(ExtensionString pathname)
606606
{
607-
[[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs:[NSArray arrayWithObject: [NSURL fileURLWithPath: pathname.c_str()]]];
607+
NSString *filepath = [NSString stringWithUTF8String:pathname.c_str()];
608+
[[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs:[NSArray arrayWithObject: [NSURL fileURLWithPath: filepath]]];
608609
return NO_ERROR;
609610
}
610611

0 commit comments

Comments
 (0)