mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 23:32:58 +00:00
[SHELL32] Use the already existing g_pszShell32 instead of re-defining a new variable holding the very same string.
This commit is contained in:
parent
83be315abf
commit
48d1a7bf4d
1 changed files with 2 additions and 4 deletions
|
@ -164,8 +164,6 @@ DoLoadIcons(HWND hwndDlg, PPICK_ICON_CONTEXT pIconContext, LPCWSTR pszFile)
|
||||||
return (pIconContext->nIcons > 0);
|
return (pIconContext->nIcons > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const LPCWSTR s_pszDefaultPath = L"%SystemRoot%\\system32\\shell32.dll";
|
|
||||||
|
|
||||||
static void NoIconsInFile(HWND hwndDlg, PPICK_ICON_CONTEXT pIconContext)
|
static void NoIconsInFile(HWND hwndDlg, PPICK_ICON_CONTEXT pIconContext)
|
||||||
{
|
{
|
||||||
// Show an error message
|
// Show an error message
|
||||||
|
@ -174,7 +172,7 @@ static void NoIconsInFile(HWND hwndDlg, PPICK_ICON_CONTEXT pIconContext)
|
||||||
MessageBoxW(hwndDlg, strText, strTitle, MB_ICONWARNING);
|
MessageBoxW(hwndDlg, strText, strTitle, MB_ICONWARNING);
|
||||||
|
|
||||||
// Load the default icons
|
// Load the default icons
|
||||||
DoLoadIcons(hwndDlg, pIconContext, s_pszDefaultPath);
|
DoLoadIcons(hwndDlg, pIconContext, g_pszShell32);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Icon size
|
// Icon size
|
||||||
|
@ -388,7 +386,7 @@ BOOL WINAPI PickIconDlg(
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the default value
|
// Set the default value
|
||||||
StringCchCopyW(IconContext.szPath, _countof(IconContext.szPath), s_pszDefaultPath);
|
StringCchCopyW(IconContext.szPath, _countof(IconContext.szPath), g_pszShell32);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show the dialog
|
// Show the dialog
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue