mirror of
https://github.com/ValdikSS/GoodbyeDPI.git
synced 2024-12-22 06:15:27 +00:00
Print errorcode in WinDivert error message
This commit is contained in:
parent
74822fca16
commit
abcca5ea84
@ -294,7 +294,7 @@ static HANDLE init(char *filter, UINT64 flags) {
|
|||||||
FORMAT_MESSAGE_IGNORE_INSERTS,
|
FORMAT_MESSAGE_IGNORE_INSERTS,
|
||||||
NULL, errorcode, MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT),
|
NULL, errorcode, MAKELANGID(LANG_ENGLISH, SUBLANG_DEFAULT),
|
||||||
(LPTSTR)&errormessage, 0, NULL);
|
(LPTSTR)&errormessage, 0, NULL);
|
||||||
printf("Error opening filter: %s", errormessage);
|
printf("Error opening filter: %d %s\n", errorcode, errormessage);
|
||||||
LocalFree(errormessage);
|
LocalFree(errormessage);
|
||||||
if (errorcode == 2)
|
if (errorcode == 2)
|
||||||
printf("The driver files WinDivert32.sys or WinDivert64.sys were not found.\n");
|
printf("The driver files WinDivert32.sys or WinDivert64.sys were not found.\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user