From 044669e709ee06a053b17e94ab00bb8a576f68da Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 2 Jul 2010 14:14:44 +0200 Subject: [PATCH] msi/tests: Check the x86 program directory first for installed files. --- dlls/msi/tests/automation.c | 3 ++- dlls/msi/tests/install.c | 3 ++- dlls/msi/tests/patch.c | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dlls/msi/tests/automation.c b/dlls/msi/tests/automation.c index c7c8926711f..bad4882fac7 100644 --- a/dlls/msi/tests/automation.c +++ b/dlls/msi/tests/automation.c @@ -308,7 +308,8 @@ static BOOL get_program_files_dir(LPSTR buf) return FALSE; size = MAX_PATH; - if (RegQueryValueEx(hkey, "ProgramFilesDir", 0, &type, (LPBYTE)buf, &size)) + if (RegQueryValueEx(hkey, "ProgramFilesDir (x86)", 0, &type, (LPBYTE)buf, &size) && + RegQueryValueEx(hkey, "ProgramFilesDir", 0, &type, (LPBYTE)buf, &size)) return FALSE; RegCloseKey(hkey); diff --git a/dlls/msi/tests/install.c b/dlls/msi/tests/install.c index 6702f13129d..365c8a68184 100644 --- a/dlls/msi/tests/install.c +++ b/dlls/msi/tests/install.c @@ -3246,7 +3246,8 @@ static BOOL get_system_dirs(void) return FALSE; size = MAX_PATH; - if (RegQueryValueExA(hkey, "ProgramFilesDir", 0, &type, (LPBYTE)PROG_FILES_DIR, &size)) { + if (RegQueryValueExA(hkey, "ProgramFilesDir (x86)", 0, &type, (LPBYTE)PROG_FILES_DIR, &size) && + RegQueryValueExA(hkey, "ProgramFilesDir", 0, &type, (LPBYTE)PROG_FILES_DIR, &size)) { RegCloseKey(hkey); return FALSE; } diff --git a/dlls/msi/tests/patch.c b/dlls/msi/tests/patch.c index 3a35e3544eb..4e10505eb08 100644 --- a/dlls/msi/tests/patch.c +++ b/dlls/msi/tests/patch.c @@ -159,7 +159,8 @@ static BOOL get_program_files_dir( char *buf, char *buf2 ) return FALSE; size = MAX_PATH; - if (RegQueryValueExA( hkey, "ProgramFilesDir", 0, &type, (LPBYTE)buf, &size )) + if (RegQueryValueExA( hkey, "ProgramFilesDir (x86)", 0, &type, (LPBYTE)buf, &size ) && + RegQueryValueExA( hkey, "ProgramFilesDir", 0, &type, (LPBYTE)buf, &size )) { RegCloseKey( hkey ); return FALSE; -- 2.11.4.GIT