mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 18:23:07 +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
|
@ -138,19 +138,14 @@ DWORD WINAPI OSK_WarningDlgThread(LPVOID lpParameter)
|
|||
VOID OSK_About(VOID)
|
||||
{
|
||||
WCHAR szAuthors[MAX_PATH];
|
||||
HICON OSKIcon;
|
||||
|
||||
/* Load the icon */
|
||||
OSKIcon = LoadImageW(Globals.hInstance, MAKEINTRESOURCEW(IDI_OSK), IMAGE_ICON, 0, 0, LR_DEFAULTSIZE);
|
||||
|
||||
/* Load the strings into the "About" dialog */
|
||||
LoadStringW(Globals.hInstance, IDS_AUTHORS, szAuthors, _countof(szAuthors));
|
||||
|
||||
/* Load the icon */
|
||||
/* Finally, execute the "About" dialog by using the Shell routine */
|
||||
ShellAboutW(Globals.hMainWnd, Globals.szTitle, szAuthors, OSKIcon);
|
||||
|
||||
/* Once done, destroy the icon */
|
||||
DestroyIcon(OSKIcon);
|
||||
ShellAboutW(Globals.hMainWnd, Globals.szTitle, szAuthors,
|
||||
LoadImageW(Globals.hInstance, MAKEINTRESOURCEW(IDI_OSK), IMAGE_ICON, 0, 0, LR_DEFAULTSIZE | LR_SHARED));
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue