diff options
author | Simon Rozman <simon@rozman.si> | 2020-10-15 11:32:06 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-10-30 16:51:00 +0100 |
commit | 16a9737578c585db969be64b522777c18d2b1ad6 (patch) | |
tree | e52f5b04d7c92811a8987cccdc2a0a52363202ef /api/registry.c | |
parent | api: simplify logger macros names (diff) | |
download | wintun-16a9737578c585db969be64b522777c18d2b1ad6.tar.xz wintun-16a9737578c585db969be64b522777c18d2b1ad6.zip |
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 <simon@rozman.si>
Diffstat (limited to '')
-rw-r--r-- | api/registry.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } } |