mirror of
https://github.com/reactos/reactos.git
synced 2025-06-11 04:47:22 +00:00
[REACTOS] Do not free shared icon for ShellAbout() calls (#5519)
CORE-18369
This commit is contained in:
parent
815d55c378
commit
016acd170d
11 changed files with 25 additions and 52 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue