wintrust: Use GetSystemDirectory rather than GetWindowsDirectory to find the CatRoot directories.

This commit is contained in:
Juan Lang 2009-02-03 08:04:15 -08:00 committed by Alexandre Julliard
parent b9ae777d96
commit 2d0e586425
1 changed files with 6 additions and 6 deletions

View File

@ -1079,7 +1079,7 @@ START_TEST(crypt)
{
int myARGC;
char** myARGV;
char windir[MAX_PATH];
char sysdir[MAX_PATH];
InitFunctionPtrs();
@ -1089,11 +1089,11 @@ START_TEST(crypt)
return;
}
GetWindowsDirectoryA(windir, MAX_PATH);
lstrcpyA(catroot, windir);
lstrcatA(catroot, "\\system32\\CatRoot");
lstrcpyA(catroot2, windir);
lstrcatA(catroot2, "\\system32\\CatRoot2");
GetSystemDirectoryA(sysdir, MAX_PATH);
lstrcpyA(catroot, sysdir);
lstrcatA(catroot, "\\CatRoot");
lstrcpyA(catroot2, sysdir);
lstrcatA(catroot2, "\\CatRoot2");
myARGC = winetest_get_mainargs(&myARGV);
strcpy(selfname, myARGV[0]);