Consistency issues in load_windows_system_library patch. Thanks Sebastian

This commit is contained in:
Nick Mathewson
2010-09-24 14:16:55 -04:00
parent aa7f55c45f
commit d073d7d4eb
3 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -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("\\"));