Module: wine Branch: master Commit: 2d0e58642510129569a966c94dd781c0868a1b26 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2d0e58642510129569a966c94d...
Author: Juan Lang juan.lang@gmail.com Date: Tue Feb 3 08:04:15 2009 -0800
wintrust: Use GetSystemDirectory rather than GetWindowsDirectory to find the CatRoot directories.
---
dlls/wintrust/tests/crypt.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/dlls/wintrust/tests/crypt.c b/dlls/wintrust/tests/crypt.c index 64211f1..1d7f30e 100644 --- a/dlls/wintrust/tests/crypt.c +++ b/dlls/wintrust/tests/crypt.c @@ -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]);