[INPUT] Use MAKEINTRESOURCE instead of LoadString (#4628)

This commit is contained in:
Thamatip Chitpong 2022-08-24 13:17:14 +07:00 committed by GitHub
parent d4ed449ca2
commit 0ed302ef65
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;