From 0ed302ef656ed39c932e084508ffa506b47c463b Mon Sep 17 00:00:00 2001 From: Thamatip Chitpong Date: Wed, 24 Aug 2022 13:17:14 +0700 Subject: [PATCH] [INPUT] Use MAKEINTRESOURCE instead of LoadString (#4628) --- dll/cpl/input/input.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dll/cpl/input/input.c b/dll/cpl/input/input.c index 1896eb8552a..f169e97c151 100644 --- a/dll/cpl/input/input.c +++ b/dll/cpl/input/input.c @@ -58,9 +58,6 @@ SystemApplet(HWND hwnd, UINT uMsg, LPARAM lParam1, LPARAM lParam2) { PROPSHEETPAGEW page[2]; PROPSHEETHEADERW header; - WCHAR szCaption[MAX_STR_LEN]; - - LoadStringW(hApplet, IDS_CPLSYSTEMNAME, szCaption, ARRAYSIZE(szCaption)); ZeroMemory(&header, sizeof(header)); @@ -69,7 +66,7 @@ SystemApplet(HWND hwnd, UINT uMsg, LPARAM lParam1, LPARAM lParam2) header.hwndParent = hwnd; header.hInstance = hApplet; header.pszIcon = MAKEINTRESOURCEW(IDI_KEY_SHORT_ICO); - header.pszCaption = szCaption; + header.pszCaption = MAKEINTRESOURCEW(IDS_CPLSYSTEMNAME); header.nPages = ARRAYSIZE(page); header.nStartPage = 0; header.ppsp = page;