mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Consistency issues in load_windows_system_library patch. Thanks Sebastian
This commit is contained in:
+1
-1
@@ -2800,7 +2800,7 @@ load_windows_system_library(const TCHAR *library_name)
|
||||
{
|
||||
TCHAR path[MAX_PATH];
|
||||
unsigned n;
|
||||
n = GetSystemDirectory(path, 1024);
|
||||
n = GetSystemDirectory(path, MAX_PATH);
|
||||
if (n == 0 || n + _tcslen(library_name) + 2 >= MAX_PATH)
|
||||
return 0;
|
||||
_tcscat(path, TEXT("\\"));
|
||||
|
||||
Reference in New Issue
Block a user