[PATCH] handle localized C:\Program Files

Marcus Meissner marcus at jet.franken.de
Sat Oct 6 10:13:19 CDT 2007


Hi,

C:\Program Files is actually translated, but the
testcase did not honor this and failed.

I got rid of the indirection and use the %16422%
environment variable to get the correct translation.

Ciao, Marcus
---
 dlls/advpack/tests/advpack.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/advpack/tests/advpack.c b/dlls/advpack/tests/advpack.c
index 4c49e3f..c80b5e7 100644
--- a/dlls/advpack/tests/advpack.c
+++ b/dlls/advpack/tests/advpack.c
@@ -205,7 +205,7 @@ static void create_inf_file(void)
     append_str(&ptr, "49030=DestC\n");
     append_str(&ptr, "[ProgramFilesDir]\n");
     append_str(&ptr, "HKLM,\"Software\\Microsoft\\Windows\\CurrentVersion\",");
-    append_str(&ptr, "\"ProgramFilesDir\",,\"%%24%%\\%%LProgramF%%\"\n");
+    append_str(&ptr, "\"ProgramFilesDir\",,\"%%24%%\\%%16422%%\"\n");
     append_str(&ptr, "[section]\n");
     append_str(&ptr, "NotACustomDestination=Version\n");
     append_str(&ptr, "CustomDestination=CustInstDestSection\n");
@@ -218,9 +218,8 @@ static void create_inf_file(void)
     append_str(&ptr, "CustomHDestination=CustInstDestSection\n");
     append_str(&ptr, "[Strings]\n");
     append_str(&ptr, "DefaultAppPath=\"Application Name\"\n");
-    append_str(&ptr, "LProgramF=\"Program Files\"\n");
     append_str(&ptr, "[DestA]\n");
-    append_str(&ptr, "HKLM,\"Software\\Garbage\",\"ProgramFilesDir\",,'%%24%%\\%%LProgramF%%'\n");
+    append_str(&ptr, "HKLM,\"Software\\Garbage\",\"ProgramFilesDir\",,'%%16422%%'\n");
     append_str(&ptr, "[DestB]\n");
     append_str(&ptr, "'HKLM','Software\\Microsoft\\Windows\\CurrentVersion',");
     append_str(&ptr, "'ProgramFilesDir',,\"%%24%%\"\n");
-- 
1.5.2.4



More information about the wine-patches mailing list