Detlef Riekenberg : winspool: Enable environment "Windows x64" for Win64.

Alexandre Julliard julliard at winehq.org
Thu Feb 5 09:21:02 CST 2009


Module: wine
Branch: master
Commit: c0e11f663b0009c52e349426ea4f69855466a2c8
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=c0e11f663b0009c52e349426ea4f69855466a2c8

Author: Detlef Riekenberg <wine.dev at web.de>
Date:   Wed Feb  4 23:25:36 2009 +0100

winspool: Enable environment "Windows x64" for Win64.

---

 dlls/winspool.drv/info.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c
index 6212cc8..bc688f4 100644
--- a/dlls/winspool.drv/info.c
+++ b/dlls/winspool.drv/info.c
@@ -195,8 +195,10 @@ static const WCHAR WinNT_CV_PrinterPortsW[] = { 'S','o','f','t','w','a','r','e',
 
 static const WCHAR DefaultEnvironmentW[] = {'W','i','n','e',0};
 static const WCHAR envname_win40W[] = {'W','i','n','d','o','w','s',' ','4','.','0',0};
+static const WCHAR envname_x64W[] =   {'W','i','n','d','o','w','s',' ','x','6','4',0};
 static const WCHAR envname_x86W[] =   {'W','i','n','d','o','w','s',' ','N','T',' ','x','8','6',0};
 static const WCHAR subdir_win40W[] = {'w','i','n','4','0',0};
+static const WCHAR subdir_x64W[] =   {'x','6','4',0};
 static const WCHAR subdir_x86W[] =   {'w','3','2','x','8','6',0};
 static const WCHAR Version0_RegPathW[] = {'\\','V','e','r','s','i','o','n','-','0',0};
 static const WCHAR Version0_SubdirW[] = {'\\','0',0};
@@ -283,12 +285,14 @@ static const DWORD pi_sizeof[] = {0, sizeof(PRINTER_INFO_1W), sizeof(PRINTER_INF
 
 static const  printenv_t * validate_envW(LPCWSTR env)
 {
+    static const printenv_t env_x64 =   {envname_x64W, subdir_x64W,
+                                         3, Version3_RegPathW, Version3_SubdirW};
     static const printenv_t env_x86 =   {envname_x86W, subdir_x86W,
                                          3, Version3_RegPathW, Version3_SubdirW};
     static const printenv_t env_win40 = {envname_win40W, subdir_win40W,
                                          0, Version0_RegPathW, Version0_SubdirW};
 
-    static const printenv_t * const all_printenv[]={&env_x86, &env_win40};
+    static const printenv_t * const all_printenv[]={&env_x86, &env_x64, &env_win40};
 
     const printenv_t *result = NULL;
     unsigned int i;




More information about the wine-cvs mailing list