From abcca5ea84f9453fbc16baaea74396bdf19ca21f Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Fri, 2 Aug 2024 17:45:49 +0300 Subject: [PATCH] Print errorcode in WinDivert error message --- src/goodbyedpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/goodbyedpi.c b/src/goodbyedpi.c index ba4bc46..4941f2d 100644 --- a/src/goodbyedpi.c +++ b/src/goodbyedpi.c @@ -294,7 +294,7 @@ static HANDLE init(char *filter, UINT64 flags) { FORMAT_MESSAGE_IGNORE_INSERTS, NULL, errorcode, MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT), (LPTSTR)&errormessage, 0, NULL); - printf("Error opening filter: %s", errormessage); + printf("Error opening filter: %d %s\n", errorcode, errormessage); LocalFree(errormessage); if (errorcode == 2) printf("The driver files WinDivert32.sys or WinDivert64.sys were not found.\n");