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