return;
}
- wLength = GetWindowsDirectoryW(DestString, MaxStrLen);
+ wLength = GetSystemWindowsDirectoryW(DestString, MaxStrLen);
if ((wLength > 0) && (_wcsnicmp(ConsoleName, DestString, wLength) == 0))
{
StringCchCopyW(DestString, MaxStrLen, L"%SystemRoot%");