[REACTOS] Do not free shared icon for ShellAbout() calls (#5519)

CORE-18369
This commit is contained in:
Serge Gautherie 2023-08-09 11:53:13 +02:00 committed by GitHub
parent 815d55c378
commit 016acd170d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 25 additions and 52 deletions

View file

@ -469,13 +469,11 @@ CMainWindow::ShowAboutDlg()
{
CStringW szApp;
CStringW szAuthors;
HICON hIcon;
szApp.LoadStringW(IDS_APPTITLE);
szAuthors.LoadStringW(IDS_APP_AUTHORS);
hIcon = LoadIconW(hInst, MAKEINTRESOURCEW(IDI_MAIN));
ShellAboutW(m_hWnd, szApp, szAuthors, hIcon);
DestroyIcon(hIcon);
ShellAboutW(m_hWnd, szApp, szAuthors,
LoadIconW(hInst, MAKEINTRESOURCEW(IDI_MAIN)));
}
VOID