[PATCH] kernel32: Add message resource for TRUST_E_NOSIGNATURE
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Sun Feb 25 18:34:25 CST 2018
From: Louis Lenders <xerox.xerox2000x at 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 at gmail.com>
Signed-off-by: Michael Müller <michael at fds-team.de>
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at 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.
+.
--
1.9.1
More information about the wine-devel
mailing list