mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 02:16:49 +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
|
@ -1945,9 +1945,9 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdL
|
|||
hInstance,
|
||||
MAKEINTRESOURCE(IDI_CALC),
|
||||
IMAGE_ICON,
|
||||
GetSystemMetrics(SM_CXICON),
|
||||
GetSystemMetrics(SM_CYICON),
|
||||
0);
|
||||
0,
|
||||
0,
|
||||
LR_DEFAULTSIZE | LR_SHARED);
|
||||
|
||||
calc.hSmIcon = LoadImage(
|
||||
hInstance,
|
||||
|
@ -1955,7 +1955,7 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdL
|
|||
IMAGE_ICON,
|
||||
GetSystemMetrics(SM_CXSMICON),
|
||||
GetSystemMetrics(SM_CYSMICON),
|
||||
0);
|
||||
LR_SHARED);
|
||||
|
||||
do {
|
||||
/* ignore hwnd: dialogs are already visible! */
|
||||
|
@ -1985,12 +1985,6 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdL
|
|||
save_config();
|
||||
} while (calc.action != IDC_STATIC);
|
||||
|
||||
if (calc.hBgIcon != NULL)
|
||||
DestroyIcon(calc.hBgIcon);
|
||||
|
||||
if (calc.hSmIcon != NULL)
|
||||
DestroyIcon(calc.hSmIcon);
|
||||
|
||||
stop_rpn_engine();
|
||||
|
||||
Theme_Stop();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue