1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2025-02-17 19:09:25 +01:00

Minor adjustments

This commit is contained in:
Valentin Radu 2021-11-20 13:42:52 +02:00
parent 93a7f5c0d7
commit 13399e81f1

View File

@ -2446,7 +2446,7 @@ HWND WINAPI explorerframe_SHCreateWorkerWindowHook(
if (dwExStyle == 0x10000 && dwStyle == 0x46000000) if (dwExStyle == 0x10000 && dwStyle == 0x46000000)
{ {
#ifdef USE_PRIVATE_INTERFACES #ifdef USE_PRIVATE_INTERFACES
if (bMicaEffectOnTitlebar) if (bMicaEffectOnTitlebar && result)
{ {
BOOL value = TRUE; BOOL value = TRUE;
SetPropW(hWndParent, L"NavBarGlass", HANDLE_FLAG_INHERIT); SetPropW(hWndParent, L"NavBarGlass", HANDLE_FLAG_INHERIT);
@ -5604,7 +5604,6 @@ DWORD Inject(BOOL bIsExplorer)
HMODULE hExtra = LoadLibraryW(wszExtraLibPath); HMODULE hExtra = LoadLibraryW(wszExtraLibPath);
if (hExtra) if (hExtra)
{ {
printf("[Extra] Found library: %p.\n", hExtra); printf("[Extra] Found library: %p.\n", hExtra);
FARPROC ep_extra_entrypoint = GetProcAddress(hExtra, "ep_extra_EntryPoint"); FARPROC ep_extra_entrypoint = GetProcAddress(hExtra, "ep_extra_EntryPoint");
if (ep_extra_entrypoint) if (ep_extra_entrypoint)