https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3615e7c122004cb703790…
commit 3615e7c122004cb703790eadd32a8acdc0eb35be
Author: Serge Gautherie <32623169+SergeGautherie(a)users.noreply.github.com>
AuthorDate: Mon Mar 20 22:19:30 2023 +0100
Commit: GitHub <noreply(a)github.com>
CommitDate: Tue Mar 21 06:19:30 2023 +0900
[NOTEPAD] LoadIcon() needs no DestroyIcon() (#5142)
CORE-18369
---
base/applications/notepad/dialog.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/base/applications/notepad/dialog.c b/base/applications/notepad/dialog.c
index cc5efe0743f..b972dbb08bc 100644
--- a/base/applications/notepad/dialog.c
+++ b/base/applications/notepad/dialog.c
@@ -900,11 +900,9 @@ VOID DIALOG_HelpAboutNotepad(VOID)
TCHAR szNotepad[MAX_STRING_LEN];
TCHAR szNotepadAuthors[MAX_STRING_LEN];
- HICON notepadIcon = LoadIcon(Globals.hInstance, MAKEINTRESOURCE(IDI_NPICON));
-
LoadString(Globals.hInstance, STRING_NOTEPAD, szNotepad, ARRAY_SIZE(szNotepad));
LoadString(Globals.hInstance, STRING_NOTEPAD_AUTHORS, szNotepadAuthors,
ARRAY_SIZE(szNotepadAuthors));
- ShellAbout(Globals.hMainWnd, szNotepad, szNotepadAuthors, notepadIcon);
- DestroyIcon(notepadIcon);
+ ShellAbout(Globals.hMainWnd, szNotepad, szNotepadAuthors,
+ LoadIcon(Globals.hInstance, MAKEINTRESOURCE(IDI_NPICON)));
}