Fix device handle leak

This commit is contained in:
V2
2023-06-20 18:49:04 +01:00
committed by GitHub
parent 1d91049d56
commit a844482c94
+1
View File
@@ -211,6 +211,7 @@ int main(void) {
NULL, 0, NULL, NULL)) {
printf("Failed to register the process in the trusted list %X !!\n",
IOCTL_REGISTER_PROCESS);
CloseHandle(hDevice);
return (-1);
}