Skip to content

Commit 766ef24

Browse files
ThFabbaJoachimHenze
authored andcommitted
[0.4.8] Revert r73436 to avoid trouble with VirtualBox Guest Additions. CORE-13172 CORE-12700 CORE-12765
cherry-picked by Joachim Henze
1 parent 51f9494 commit 766ef24

File tree

3 files changed

+8
-20
lines changed

3 files changed

+8
-20
lines changed

dll/win32/shell32/iconcache.cpp

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -453,9 +453,6 @@ INT SIC_GetIconIndex (LPCWSTR sSourceFile, INT dwSourceIndex, DWORD dwFlags )
453453
sice.dwSourceIndex = dwSourceIndex;
454454
sice.dwFlags = dwFlags;
455455

456-
if (!sic_hdpa)
457-
SIC_Initialize();
458-
459456
EnterCriticalSection(&SHELL32_SicCS);
460457

461458
if (NULL != DPA_GetPtr (sic_hdpa, 0))
@@ -690,9 +687,6 @@ static int SIC_LoadOverlayIcon(int icon_idx)
690687
RegCloseKey(hKeyShellIcons);
691688
}
692689

693-
if (!sic_hdpa)
694-
SIC_Initialize();
695-
696690
return SIC_LoadIcon(iconPath, iconIdx, 0);
697691
}
698692

@@ -704,17 +698,13 @@ static int SIC_LoadOverlayIcon(int icon_idx)
704698
*
705699
*/
706700
BOOL WINAPI Shell_GetImageLists(HIMAGELIST * lpBigList, HIMAGELIST * lpSmallList)
707-
{
708-
TRACE("(%p,%p)\n",lpBigList,lpSmallList);
709-
710-
if (!sic_hdpa)
711-
SIC_Initialize();
712-
701+
{ TRACE("(%p,%p)\n",lpBigList,lpSmallList);
713702
if (lpBigList)
714-
*lpBigList = ShellBigIconList;
715-
703+
{ *lpBigList = ShellBigIconList;
704+
}
716705
if (lpSmallList)
717-
*lpSmallList = ShellSmallIconList;
706+
{ *lpSmallList = ShellSmallIconList;
707+
}
718708

719709
return TRUE;
720710
}
@@ -745,9 +735,6 @@ BOOL PidlToSicIndex (
745735

746736
TRACE("sf=%p pidl=%p %s\n", sh, pidl, bBigIcon?"Big":"Small");
747737

748-
if (!sic_hdpa)
749-
SIC_Initialize();
750-
751738
if (SUCCEEDED (sh->GetUIObjectOf(0, 1, &pidl, IID_NULL_PPV_ARG(IExtractIconW, &ei))))
752739
{
753740
if (SUCCEEDED(ei->GetIconLocation(uFlags &~ GIL_FORSHORTCUT, szIconFile, MAX_PATH, &iSourceIndex, &dwFlags)))

dll/win32/shell32/shell32.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ STDAPI_(BOOL) DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID fImpLoad)
341341
InitCommonControlsEx(&InitCtrls);
342342

343343
/* Bad idea, initialization in DllMain! */
344+
SIC_Initialize();
344345
InitChangeNotifications();
345346
}
346347
else if (dwReason == DLL_PROCESS_DETACH)

dll/win32/shell32/wine/shellord.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,8 +1296,8 @@ BOOL WINAPI WriteCabinetState(CABINETSTATE *cs)
12961296
*
12971297
*/
12981298
BOOL WINAPI FileIconInit(BOOL bFullInit)
1299-
{
1300-
return SIC_Initialize();
1299+
{ FIXME("(%s)\n", bFullInit ? "true" : "false");
1300+
return FALSE;
13011301
}
13021302

13031303
/*************************************************************************

0 commit comments

Comments
 (0)