Browse Source

Taskbar10: Don't crash if stobject.dll is not present

pull/3911/head
Amrsatrio 1 year ago
parent
commit
6add2999ab
  1. 6
      ExplorerPatcher/dllmain.c

6
ExplorerPatcher/dllmain.c

@ -9969,6 +9969,9 @@ typedef struct SSOEntry @@ -9969,6 +9969,9 @@ typedef struct SSOEntry
void PatchStobject(HANDLE hStobject)
{
if (!hStobject)
return;
PBYTE beginRData = NULL;
DWORD sizeRData = 0;
@ -10689,6 +10692,8 @@ DWORD Inject(BOOL bIsExplorer) @@ -10689,6 +10692,8 @@ DWORD Inject(BOOL bIsExplorer)
HANDLE hStobject = LoadLibraryW(L"stobject.dll");
if (hStobject)
{
VnPatchIAT(hStobject, "api-ms-win-core-registry-l1-1-0.dll", "RegGetValueW", stobject_RegGetValueW);
VnPatchIAT(hStobject, "api-ms-win-core-com-l1-1-0.dll", "CoCreateInstance", stobject_CoCreateInstanceHook);
if (IsWindows11())
@ -10705,6 +10710,7 @@ DWORD Inject(BOOL bIsExplorer) @@ -10705,6 +10710,7 @@ DWORD Inject(BOOL bIsExplorer)
{
PatchStobject(hStobject);
}
}
#ifdef USE_PRIVATE_INTERFACES
if (bSkinIcons)
{

Loading…
Cancel
Save