Skip to content

Commit 26ee506

Browse files
committed
Print errorcode in WinDivert error message
1 parent 74822fc commit 26ee506

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/goodbyedpi.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ static HANDLE init(char *filter, UINT64 flags) {
294294
FORMAT_MESSAGE_IGNORE_INSERTS,
295295
NULL, errorcode, MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT),
296296
(LPTSTR)&errormessage, 0, NULL);
297-
printf("Error opening filter: %s", errormessage);
297+
printf("Error opening filter: %d %s\n", errorcore, errormessage);
298298
LocalFree(errormessage);
299299
if (errorcode == 2)
300300
printf("The driver files WinDivert32.sys or WinDivert64.sys were not found.\n");

0 commit comments

Comments
 (0)