Skip to content

Commit 079483d

Browse files
committed
1.1.2.1439 Update
1 parent f9b5597 commit 079483d

File tree

14 files changed

+116
-41
lines changed

14 files changed

+116
-41
lines changed

00-Common Headers/KexGui.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ KEXGDECLSPEC EXTERN_C HWND KEXGAPI ToolTip(
208208

209209
KEXGDECLSPEC BOOLEAN KEXGAPI ShowPropertiesDialog(
210210
IN PCWSTR FilePath,
211-
IN INT ShowControl);
211+
IN INT ShowControl,
212+
IN BOOL NoErrorBox);
212213

213214
KEXGDECLSPEC HRESULT KEXGAPI OpenFileLocation(
214215
IN PCWSTR FilePath,

00-Common Headers/vautogen.h

0 Bytes
Binary file not shown.

00-Documentation/Changelog.txt

600 Bytes
Binary file not shown.

01-Development Utilities/vautogen/vautogen.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ HeaderFile=..\..\00-Common Headers\vautogen.h
33
MajorVersion=1
44
MinorVersion=1
55
PatchLevel=2
6-
BuildNumber=1436
6+
BuildNumber=1439

01-Extended DLLs/KxCom/firefoxpatch.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ HRESULT WINAPI Ext_CoCreateInstance(
1111
OUT LPVOID *ppv)
1212
{
1313
unless (KexData->IfeoParameters.DisableAppSpecific){
14-
if (AshExeBaseNameIs(L"firefox.exe")) {
14+
if (AshExeBaseNameIs(L"firefox.exe")
15+
|| AshExeBaseNameIs(L"thunderbird.exe")
16+
|| AshExeBaseNameIs(L"betterbird.exe")
17+
|| AshExeBaseNameIs(L"librewolf.exe")) {
1518
if ((IsEqualCLSID(rclsid, &CLSID_DestinationList) && pUnkOuter == NULL && dwClsContext == CLSCTX_INPROC_SERVER && IsEqualIID(riid, &IID_ICustomDestinationList)) || (pUnkOuter == NULL && dwClsContext == CLSCTX_INPROC_SERVER && IsEqualIID(riid, &IID_IObjectCollection))) return E_NOTIMPL;
1619
}
1720
}

01-Extended DLLs/KxUia/KxUia.sdf

-916 KB
Binary file not shown.

01-Extended DLLs/KxUser/sysmetrc.c

Lines changed: 54 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ INT WINAPI GetSystemMetricsForDpi(
4242
case SM_CYMENUCHECK:
4343
// These are pixel values that have to be scaled according to DPI.
4444
Value *= Dpi;
45-
Value /= GetDpiForSystem();
45+
Value /= (INT) GetDpiForSystem();
4646
break;
4747
}
4848

@@ -56,9 +56,27 @@ BOOL WINAPI SystemParametersInfoForDpi(
5656
IN UINT WinIni,
5757
IN UINT Dpi)
5858
{
59+
INT SystemDpi = GetDpiForSystem();
60+
5961
switch (Action) {
6062
case SPI_GETICONTITLELOGFONT:
61-
return SystemParametersInfo(Action, Parameter, Data, 0);
63+
{
64+
BOOL Success;
65+
PLOGFONT LogFont;
66+
67+
Success = SystemParametersInfo(Action, Parameter, Data, 0);
68+
69+
if (Success) {
70+
LogFont = (PLOGFONT) Data;
71+
72+
LogFont->lfWidth *= Dpi;
73+
LogFont->lfHeight *= Dpi;
74+
LogFont->lfWidth /= SystemDpi;
75+
LogFont->lfHeight /= SystemDpi;
76+
}
77+
78+
return Success;
79+
}
6280
case SPI_GETICONMETRICS:
6381
{
6482
BOOL Success;
@@ -71,8 +89,8 @@ BOOL WINAPI SystemParametersInfoForDpi(
7189

7290
IconMetrics->iHorzSpacing *= Dpi;
7391
IconMetrics->iVertSpacing *= Dpi;
74-
IconMetrics->iHorzSpacing /= USER_DEFAULT_SCREEN_DPI;
75-
IconMetrics->iVertSpacing /= USER_DEFAULT_SCREEN_DPI;
92+
IconMetrics->iHorzSpacing /= SystemDpi;
93+
IconMetrics->iVertSpacing /= SystemDpi;
7694
}
7795

7896
return Success;
@@ -98,16 +116,38 @@ BOOL WINAPI SystemParametersInfoForDpi(
98116
NonClientMetrics->iMenuHeight *= Dpi;
99117
NonClientMetrics->iPaddedBorderWidth *= Dpi;
100118

101-
NonClientMetrics->iBorderWidth /= USER_DEFAULT_SCREEN_DPI;
102-
NonClientMetrics->iScrollWidth /= USER_DEFAULT_SCREEN_DPI;
103-
NonClientMetrics->iScrollHeight /= USER_DEFAULT_SCREEN_DPI;
104-
NonClientMetrics->iCaptionWidth /= USER_DEFAULT_SCREEN_DPI;
105-
NonClientMetrics->iCaptionHeight /= USER_DEFAULT_SCREEN_DPI;
106-
NonClientMetrics->iSmCaptionWidth /= USER_DEFAULT_SCREEN_DPI;
107-
NonClientMetrics->iSmCaptionHeight /= USER_DEFAULT_SCREEN_DPI;
108-
NonClientMetrics->iMenuWidth /= USER_DEFAULT_SCREEN_DPI;
109-
NonClientMetrics->iMenuHeight /= USER_DEFAULT_SCREEN_DPI;
110-
NonClientMetrics->iPaddedBorderWidth /= USER_DEFAULT_SCREEN_DPI;
119+
NonClientMetrics->lfCaptionFont.lfWidth *= Dpi;
120+
NonClientMetrics->lfCaptionFont.lfHeight *= Dpi;
121+
NonClientMetrics->lfMenuFont.lfWidth *= Dpi;
122+
NonClientMetrics->lfMenuFont.lfHeight *= Dpi;
123+
NonClientMetrics->lfMessageFont.lfWidth *= Dpi;
124+
NonClientMetrics->lfMessageFont.lfHeight *= Dpi;
125+
NonClientMetrics->lfSmCaptionFont.lfWidth *= Dpi;
126+
NonClientMetrics->lfSmCaptionFont.lfHeight *= Dpi;
127+
NonClientMetrics->lfStatusFont.lfWidth *= Dpi;
128+
NonClientMetrics->lfStatusFont.lfHeight *= Dpi;
129+
130+
NonClientMetrics->iBorderWidth /= SystemDpi;
131+
NonClientMetrics->iScrollWidth /= SystemDpi;
132+
NonClientMetrics->iScrollHeight /= SystemDpi;
133+
NonClientMetrics->iCaptionWidth /= SystemDpi;
134+
NonClientMetrics->iCaptionHeight /= SystemDpi;
135+
NonClientMetrics->iSmCaptionWidth /= SystemDpi;
136+
NonClientMetrics->iSmCaptionHeight /= SystemDpi;
137+
NonClientMetrics->iMenuWidth /= SystemDpi;
138+
NonClientMetrics->iMenuHeight /= SystemDpi;
139+
NonClientMetrics->iPaddedBorderWidth /= SystemDpi;
140+
141+
NonClientMetrics->lfCaptionFont.lfWidth /= SystemDpi;
142+
NonClientMetrics->lfCaptionFont.lfHeight /= SystemDpi;
143+
NonClientMetrics->lfMenuFont.lfWidth /= SystemDpi;
144+
NonClientMetrics->lfMenuFont.lfHeight /= SystemDpi;
145+
NonClientMetrics->lfMessageFont.lfWidth /= SystemDpi;
146+
NonClientMetrics->lfMessageFont.lfHeight /= SystemDpi;
147+
NonClientMetrics->lfSmCaptionFont.lfWidth /= SystemDpi;
148+
NonClientMetrics->lfSmCaptionFont.lfHeight /= SystemDpi;
149+
NonClientMetrics->lfStatusFont.lfWidth /= SystemDpi;
150+
NonClientMetrics->lfStatusFont.lfHeight /= SystemDpi;
111151
}
112152

113153
return Success;

Clean_VxKex_NEXT.bat

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
@echo off
2+
cd /D %~dp0
3+
rmdir /S /Q ipch
4+
del /A /F /S /Q *.user *.sdf *.suo *.aps
5+
6+
for /R /D %%f in (x64) do (
7+
if not "%%f"=="%cd%\02-Prebuilt DLLs\x64" (
8+
rmdir /S /Q "%%f"
9+
)
10+
)
11+
12+
for /R /D %%f in (Debug) do (
13+
rmdir /S /Q "%%f"
14+
)
15+
16+
for /R /D %%f in (Release) do (
17+
rmdir /S /Q "%%f"
18+
)
19+
20+
pause

KexCfg/gui.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ STATIC VOID OpenSelectedItemProperties(
515515
ItemIndex = ListView_GetNextItem(ListViewWindow, -1, LVIS_SELECTED);
516516
ProgramFullPath = GetProgramFullPathFromListViewIndex(ItemIndex);
517517

518-
Success = ShowPropertiesDialog(ProgramFullPath, SW_SHOW);
518+
Success = ShowPropertiesDialog(ProgramFullPath, SW_SHOW, FALSE);
519519
if (!Success) {
520520
ULONG ErrorCode;
521521

@@ -969,7 +969,8 @@ STATIC INT_PTR CALLBACK DialogProc(
969969

970970
ShowPropertiesDialog(
971971
GetProgramFullPathFromListViewIndex(ItemIndex),
972-
SW_SHOWDEFAULT);
972+
SW_SHOWDEFAULT,
973+
FALSE);
973974
} else {
974975
return FALSE;
975976
}

KexDll/dllpath.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ NTSTATUS KexpAddKex3264ToDllPath(
165165
RtlCopyUnicodeString(DllPath, &NewDllPath);
166166

167167
Status = KexpPadDllPathToOriginalLength(DllPath, DllPathOriginalLength);
168-
ASSERT (NT_SUCCESS(Status));
168+
// ASSERT (NT_SUCCESS(Status));
169169

170170
//
171171
// Remove any embedded nulls in the path. Sometimes the system or another
@@ -178,7 +178,8 @@ NTSTATUS KexpAddKex3264ToDllPath(
178178
}
179179
}
180180

181-
return Status;
181+
// return Status;
182+
return STATUS_SUCCESS;
182183
}
183184

184185
//

0 commit comments

Comments
 (0)