[CONSRV]: Minor fixes:
[reactos.git] / reactos / win32ss / user / winsrv / concfg / settings.c
index 5880825..0b810c4 100644 (file)
@@ -100,7 +100,7 @@ TranslateConsoleName(OUT LPWSTR DestString,
         return;
     }
 
-    wLength = GetWindowsDirectoryW(DestString, MaxStrLen);
+    wLength = GetSystemWindowsDirectoryW(DestString, MaxStrLen);
     if ((wLength > 0) && (_wcsnicmp(ConsoleName, DestString, wLength) == 0))
     {
         StringCchCopyW(DestString, MaxStrLen, L"%SystemRoot%");