mirror of
https://github.com/reactos/reactos.git
synced 2025-04-03 20:21:17 +00:00
[PROGMAN][CRT][USER32] Do not use LoadLibraryEx() NT6+ flags (#3152)
CORE-12004
This commit is contained in:
parent
aad9bb8e8a
commit
a04831677e
3 changed files with 4 additions and 4 deletions
|
@ -586,7 +586,7 @@ DIALOG_SYMBOL_DlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
SetDlgItemTextW(hDlg, PM_ICON_FILE, pIconContext->szName);
|
||||
SendMessageA(pIconContext->hDlgCtrl, LB_SETITEMHEIGHT, 0, 32);
|
||||
|
||||
pIconContext->hLibrary = LoadLibraryExW(pIconContext->szName, NULL, LOAD_LIBRARY_AS_IMAGE_RESOURCE | LOAD_LIBRARY_AS_DATAFILE);
|
||||
pIconContext->hLibrary = LoadLibraryExW(pIconContext->szName, NULL, /* NT6+: LOAD_LIBRARY_AS_IMAGE_RESOURCE | */ LOAD_LIBRARY_AS_DATAFILE);
|
||||
if (pIconContext->hLibrary)
|
||||
{
|
||||
EnumResourceNamesW(pIconContext->hLibrary,
|
||||
|
@ -635,7 +635,7 @@ DIALOG_SYMBOL_DlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
|
||||
SetDlgItemTextW(hDlg, PM_ICON_FILE, filename);
|
||||
DestroyIconList(pIconContext->hDlgCtrl);
|
||||
pIconContext->hLibrary = LoadLibraryExW(filename, NULL, LOAD_LIBRARY_AS_IMAGE_RESOURCE | LOAD_LIBRARY_AS_DATAFILE);
|
||||
pIconContext->hLibrary = LoadLibraryExW(filename, NULL, /* NT6+: LOAD_LIBRARY_AS_IMAGE_RESOURCE | */ LOAD_LIBRARY_AS_DATAFILE);
|
||||
if (pIconContext->hLibrary)
|
||||
{
|
||||
EnumResourceNamesW(pIconContext->hLibrary,
|
||||
|
|
|
@ -113,7 +113,7 @@ HMODULE _CrtGetUser32()
|
|||
{
|
||||
if (_CrtUser32Handle == NULL)
|
||||
{
|
||||
HMODULE mod = LoadLibraryExW(L"user32.dll", NULL, LOAD_LIBRARY_SEARCH_SYSTEM32);
|
||||
HMODULE mod = LoadLibraryExW(L"user32.dll", NULL, 0 /* NT6+: LOAD_LIBRARY_SEARCH_SYSTEM32 */);
|
||||
if (mod == NULL)
|
||||
mod = (HMODULE)INVALID_HANDLE_VALUE;
|
||||
|
||||
|
|
|
@ -1866,7 +1866,7 @@ CURSORICON_CopyImage(
|
|||
ustrRsrc.Buffer, IS_INTRESOURCE(ustrRsrc.Buffer) ? L"" : ustrRsrc.Buffer);
|
||||
|
||||
/* Get the module handle or load the module */
|
||||
hModule = LoadLibraryExW(ustrModule.Buffer, NULL, LOAD_LIBRARY_AS_IMAGE_RESOURCE | LOAD_LIBRARY_AS_DATAFILE);
|
||||
hModule = LoadLibraryExW(ustrModule.Buffer, NULL, /* NT6+: LOAD_LIBRARY_AS_IMAGE_RESOURCE | */ LOAD_LIBRARY_AS_DATAFILE);
|
||||
if (!hModule)
|
||||
{
|
||||
DWORD err = GetLastError();
|
||||
|
|
Loading…
Reference in a new issue