Skip to content

Commit

Permalink
Print errorcode in WinDivert error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ValdikSS committed Aug 2, 2024
1 parent 74822fc commit abcca5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/goodbyedpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit abcca5e

Please sign in to comment.