Skip to content

Commit 64ebe72

Browse files
committed
A dirty hack that allows 32-bit Java to find location of 64-bit program files on windows. Fixes #3525
1 parent 7b81ced commit 64ebe72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/client/src/org/openqa/selenium/os/WindowsUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public static synchronized Properties loadEnvironment() {
8787
* @return the path to the Windows Program Files
8888
*/
8989
public static String getProgramFilesPath() {
90-
return getEnvVarPath("ProgramFiles", "C:\\Program Files");
90+
return getEnvVarPath("ProgramFiles", "C:\\Program Files").replace(" (x86)", "");
9191
}
9292

9393
public static String getProgramFiles86Path() {

0 commit comments

Comments
 (0)