Skip to content

Commit 570e329

Browse files
committed
Added an undocumented Windows error code.
1 parent 0e0b9a2 commit 570e329

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

source/uWVMiscFunctions.pas

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ function EnvironmentCreationErrorToString(aErrorCode : HRESULT) : wvstring;
152152
function ControllerCreationErrorToString(aErrorCode : HRESULT) : wvstring;
153153
const
154154
// Undefined GetLastError error values
155-
ERROR_INVALID_STATE = 5023;
155+
ERROR_INVALID_STATE = 5023;
156+
ERROR_CORRUPTED_CBS = $0490;
156157
begin
157158
case aErrorCode of
158159
E_ABORT : Result := 'The parent window was destroyed before the controller creation was finished.';
@@ -168,7 +169,10 @@ function ControllerCreationErrorToString(aErrorCode : HRESULT) : wvstring;
168169
if (aErrorCode = HResultFromWin32(ERROR_FILE_NOT_FOUND)) then
169170
Result := 'The system cannot find the file specified.'
170171
else
171-
Result := 'Unexpected error result.';
172+
if (aErrorCode = HResultFromWin32(ERROR_CORRUPTED_CBS)) then
173+
Result := 'Not found. A corrupted Component-Based Servicing (CBS) manifest or corrupted system files that prevent Windows from locating necessary update components.'
174+
else
175+
Result := 'Unexpected error result.';
172176
end;
173177
end;
174178

update_WebView4Delphi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"UpdateLazPackages" : [
33
{
44
"ForceNotify" : true,
5-
"InternalVersion" : 54,
5+
"InternalVersion" : 55,
66
"Name" : "webview4delphi.lpk",
77
"Version" : "1.0.3856.49"
88
}

0 commit comments

Comments
 (0)