Skip to content

Commit 2a2f937

Browse files
authored
Update MultiProfile.md
1 parent e7c2a27 commit 2a2f937

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

specs/MultiProfile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ HRESULT AppWindow::OnCreateCoreWebView2ControllerCompleted(HRESULT result, ICore
102102
wil::unique_cotaskmem_string profile_path;
103103
CHECK_FAILURE(profile->get_ProfilePath(&profile_path));
104104
std::wstring str(profile_path.get());
105-
m_profileDirName = str.substr(str.find_last_of(L'\\') + 1);
105+
m_profileDirName = std::filesystem::path(profile_path).filename();
106106
107107
// update window title with m_profileDirName
108108
UpdateAppTitle();

0 commit comments

Comments
 (0)