Commit 1ae2036f authored by Louis Lenders's avatar Louis Lenders Committed by Alexandre Julliard

kernel32: Add message resource for TRUST_E_NOSIGNATURE.

Based on a patch by Austin English. Signed-off-by: 's avatarLouis Lenders <xerox.xerox2000x@gmail.com> Signed-off-by: 's avatarMichael Müller <michael@fds-team.de> Signed-off-by: 's avatarAlistair Leslie-Hughes <leslie_alistair@hotmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent ff4a81b4
...@@ -1559,6 +1559,10 @@ static void test_message_from_hmodule(void) ...@@ -1559,6 +1559,10 @@ static void test_message_from_hmodule(void)
MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL), out, sizeof(out)/sizeof(CHAR), NULL); MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL), out, sizeof(out)/sizeof(CHAR), NULL);
ok(ret != 0, "FormatMessageA returned 0\n"); ok(ret != 0, "FormatMessageA returned 0\n");
ret = FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_FROM_HMODULE, h, TRUST_E_NOSIGNATURE,
MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL), out, sizeof(out)/sizeof(CHAR), NULL);
ok(ret != 0, "FormatMessageA returned 0\n");
/* Test a message string with an insertion without passing any variadic arguments. */ /* Test a message string with an insertion without passing any variadic arguments. */
ret = FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_FROM_HMODULE, h, 193 /* ERROR_BAD_EXE_FORMAT */, ret = FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_FROM_HMODULE, h, 193 /* ERROR_BAD_EXE_FORMAT */,
MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL), out, sizeof(out)/sizeof(CHAR), NULL); MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL), out, sizeof(out)/sizeof(CHAR), NULL);
......
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
; ;
LanguageNames=(ENU=0x409:winerr) LanguageNames=(ENU=0x409:winerr)
SeverityNames=(CoError=0x2:STATUS_SEVERITY_COERROR)
FacilityNames=(Trust=0xb:FACILITY_CERT)
MessageId=0 MessageId=0
SymbolicName=ERROR_SUCCESS SymbolicName=ERROR_SUCCESS
...@@ -3748,3 +3750,10 @@ SymbolicName=WSAECONNREFUSED ...@@ -3748,3 +3750,10 @@ SymbolicName=WSAECONNREFUSED
Language=ENU Language=ENU
Connection refused. Connection refused.
. .
MessageId=0x100
Severity=CoError
Facility=Trust
SymbolicName=TRUST_E_NOSIGNATURE
Language=ENU
No Signature found in file.
.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment