This commit is contained in:
TheCruZ 2020-11-01 20:40:34 +01:00 committed by GitHub
parent cf9e3e65a0
commit 09b75bf875
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ bool ExistsValorantService(SC_HANDLE service_manager) {
ENUM_SERVICE_STATUSA service = buffer[i];
if (strstr(service.lpServiceName,"vgk")) {
if ((service.ServiceStatus.dwCurrentState == SERVICE_RUNNING || service.ServiceStatus.dwCurrentState == SERVICE_START_PENDING)) {
printf("[-] Valorant service running, kdmapper stoped to prevent BSOD!!\n");
printf("[-] Valorant service running, kdmapper stopped to prevent BSOD!!\n");
return true;
}
@ -134,4 +134,4 @@ bool service::StopAndRemove(const std::string& driver_name)
CloseServiceHandle(sc_manager_handle);
return result;
}
}