From 16a9737578c585db969be64b522777c18d2b1ad6 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Thu, 15 Oct 2020 11:32:06 +0200 Subject: api: internal reorganization Gather adapter management in adapter.h/.c (formerly devmgmt.h/.c) and unify HwID tests. Use "Namespace" namespace in all functions from namespace.h/.c. Fix char strings in LOG_... Signed-off-by: Simon Rozman --- api/registry.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'api/registry.c') diff --git a/api/registry.c b/api/registry.c index e591a46..f735d4d 100644 --- a/api/registry.c +++ b/api/registry.c @@ -49,7 +49,7 @@ OpenKeyWait(_In_ HKEY Key, _Inout_z_ WCHAR *Path, _In_ DWORD Access, _In_ ULONGL TimeLeft = 0; if (WaitForSingleObject(Event, (DWORD)TimeLeft) != WAIT_OBJECT_0) { - LOG(WINTUN_LOG_ERR, "Timeout waiting"); + LOG(WINTUN_LOG_ERR, L"Timeout waiting"); break; } } @@ -349,7 +349,7 @@ RegistryQueryStringWait(_In_ HKEY Key, _In_opt_z_ const WCHAR *Name, _In_ DWORD TimeLeft = 0; if (WaitForSingleObject(Event, (DWORD)TimeLeft) != WAIT_OBJECT_0) { - LOG(WINTUN_LOG_ERR, "Timeout waiting"); + LOG(WINTUN_LOG_ERR, L"Timeout waiting"); break; } } @@ -427,7 +427,7 @@ RegistryQueryDWORDWait(_In_ HKEY Key, _In_opt_z_ const WCHAR *Name, _In_ DWORD T TimeLeft = 0; if (WaitForSingleObject(Event, (DWORD)TimeLeft) != WAIT_OBJECT_0) { - LOG(WINTUN_LOG_ERR, "Timeout waiting"); + LOG(WINTUN_LOG_ERR, L"Timeout waiting"); break; } } -- cgit v1.2.3-59-g8ed1b