From: Louis Lenders xerox.xerox2000x@gmail.com
Based on a patch by Austin English.
Fixes https://bugs.winehq.org/show_bug.cgi?id=43041
Signed-off-by: Louis Lenders xerox.xerox2000x@gmail.com Signed-off-by: Michael Müller michael@fds-team.de Signed-off-by: Alistair Leslie-Hughes leslie_alistair@hotmail.com --- dlls/kernel32/tests/format_msg.c | 4 ++++ dlls/kernel32/winerror.mc | 11 +++++++++++ 2 files changed, 15 insertions(+)
diff --git a/dlls/kernel32/tests/format_msg.c b/dlls/kernel32/tests/format_msg.c index 7098805..290bce9 100644 --- a/dlls/kernel32/tests/format_msg.c +++ b/dlls/kernel32/tests/format_msg.c @@ -1559,6 +1559,10 @@ static void test_message_from_hmodule(void) MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL), out, sizeof(out)/sizeof(CHAR), NULL); 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. */ 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); diff --git a/dlls/kernel32/winerror.mc b/dlls/kernel32/winerror.mc index dc17f49..141af21 100644 --- a/dlls/kernel32/winerror.mc +++ b/dlls/kernel32/winerror.mc @@ -18,6 +18,10 @@
LanguageNames=(ENU=0x409:winerr)
+SeverityNames=(CoError=0x2:STATUS_SEVERITY_COERROR) + +FacilityNames=(Trust=0xb:FACILITY_CERT) + MessageId=0 SymbolicName=ERROR_SUCCESS Language=ENU @@ -3748,3 +3752,10 @@ SymbolicName=WSAECONNREFUSED Language=ENU Connection refused. . +MessageId=0x100 +Severity=CoError +Facility=Trust +SymbolicName=TRUST_E_NOSIGNATURE +Language=ENU +No Signature found in file. +.