diff options
author | Simon Rozman <simon@rozman.si> | 2020-07-28 12:30:12 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-10-30 16:50:59 +0100 |
commit | 4c131caa7d8cfbd412e5b30f9c95a9a6338e9d6e (patch) | |
tree | 08540d35c684cadb009bd02c7d5cfff459417868 /api/api.c | |
parent | api: fix trailing number detection in RemoveNumberedSuffix() (diff) | |
download | wintun-4c131caa7d8cfbd412e5b30f9c95a9a6338e9d6e.tar.xz wintun-4c131caa7d8cfbd412e5b30f9c95a9a6338e9d6e.zip |
api: honor locale when comparing case-insensitive
Quote from MSDN:
> You will need to call setlocale for _wcsicmp to work with Latin 1
> characters. The C locale is in effect by default, so, for example, ä
> will not compare equal to Ä.
Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'api/api.c')
-rw-r--r-- | api/api.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -58,9 +58,11 @@ DllMain(_In_ HINSTANCE hinstDLL, _In_ DWORD fdwReason, _In_ LPVOID lpvReserved) ResourceModule = hinstDLL; NamespaceInit(); NciInit(); + DevmgmtInit(); break; case DLL_PROCESS_DETACH: + DevmgmtCleanup(); NciCleanup(); NamespaceCleanup(); break; |