Skip to content

Commit 4f524c6

Browse files
authored
fix(AppActions): File > Exit causes crash (#582)
1 parent e2e5839 commit 4f524c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Views.Win32/components/AppActions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ static void refresh_rombrowser()
170170

171171
static void exit_app()
172172
{
173-
DestroyWindow(g_main_ctx.hwnd);
173+
PostMessage(g_main_ctx.hwnd, WM_CLOSE, 0, 0);
174174
}
175175

176176
#pragma endregion

0 commit comments

Comments
 (0)