aboutsummaryrefslogtreecommitdiffstats
path: root/api/api.c
diff options
context:
space:
mode:
Diffstat (limited to 'api/api.c')
-rw-r--r--api/api.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/api/api.c b/api/api.c
index bb8b0db..a470e04 100644
--- a/api/api.c
+++ b/api/api.c
@@ -31,28 +31,28 @@ WintunGetVersion(
DWORD Result =
RegOpenKeyExW(HKEY_LOCAL_MACHINE, L"SYSTEM\\CurrentControlSet\\Services\\Wintun", 0, KEY_QUERY_VALUE, &Key);
if (Result != ERROR_SUCCESS)
- return WINTUN_LOGGER_ERROR(L"Failed to open registry key", Result);
+ return LOG_ERROR(L"Failed to open registry key", Result);
Result = RegistryQueryDWORD(Key, L"DriverMajorVersion", DriverVersionMaj);
if (Result != ERROR_SUCCESS)
{
- WINTUN_LOGGER_ERROR(L"Failed to query DriverMajorVersion value", Result);
+ LOG_ERROR(L"Failed to query DriverMajorVersion value", Result);
goto cleanupKey;
}
Result = RegistryQueryDWORD(Key, L"DriverMinorVersion", DriverVersionMin);
if (Result != ERROR_SUCCESS)
{
- WINTUN_LOGGER_ERROR(L"Failed to query DriverMinorVersion value", Result);
+ LOG_ERROR(L"Failed to query DriverMinorVersion value", Result);
goto cleanupKey;
}
Result = RegistryQueryDWORD(Key, L"NdisMajorVersion", NdisVersionMaj);
if (Result != ERROR_SUCCESS)
{
- WINTUN_LOGGER_ERROR(L"Failed to query NdisMajorVersion value", Result);
+ LOG_ERROR(L"Failed to query NdisMajorVersion value", Result);
goto cleanupKey;
}
Result = RegistryQueryDWORD(Key, L"NdisMinorVersion", NdisVersionMin);
if (Result != ERROR_SUCCESS)
- WINTUN_LOGGER_ERROR(L"Failed to query NdisMinorVersion value", Result);
+ LOG_ERROR(L"Failed to query NdisMinorVersion value", Result);
cleanupKey:
RegCloseKey(Key);
return Result;