aboutsummaryrefslogtreecommitdiffstats
path: root/router/router.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-05-31 22:06:02 -0700
committerChris Robinson <[email protected]>2023-06-01 06:31:19 -0700
commitd684c7617f2e13572b1c3f9a933a23e1f0e32d49 (patch)
treeafbb72ecafce1609fdbc5574bf41f5c3d367410c /router/router.cpp
parent360fdcbc721644e7b07aab7cbea4fc11bfa144d8 (diff)
Fix a type conversion warning
Diffstat (limited to 'router/router.cpp')
-rw-r--r--router/router.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/router/router.cpp b/router/router.cpp
index 18ecf9b4..b2274c0b 100644
--- a/router/router.cpp
+++ b/router/router.cpp
@@ -328,13 +328,12 @@ void LoadDriverList(void)
WCHAR cwd_path[MAX_PATH+1] = L"";
WCHAR proc_path[MAX_PATH+1] = L"";
WCHAR sys_path[MAX_PATH+1] = L"";
- int len;
if(GetLoadedModuleDirectory(L"OpenAL32.dll", dll_path, MAX_PATH))
TRACE("Got DLL path %ls\n", dll_path);
GetCurrentDirectoryW(MAX_PATH, cwd_path);
- len = wcslen(cwd_path);
+ auto len = wcslen(cwd_path);
if(len > 0 && (cwd_path[len-1] == '\\' || cwd_path[len-1] == '/'))
cwd_path[len-1] = '\0';
TRACE("Got current working directory %ls\n", cwd_path);