winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
July
June
May
April
March
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
July 2009
----- 2025 -----
July 2025
June 2025
May 2025
April 2025
March 2025
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
4 participants
1067 discussions
Start a n
N
ew thread
Michael Stefaniuc : cryptdlg: Add missing encoding info to the German resource file.
by Alexandre Julliard
07 Jul '09
07 Jul '09
Module: wine Branch: master Commit: b1edb166911bd0688a81d46ec7cd76b7468732fb URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b1edb166911bd0688a81d46ec…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Tue Jul 7 11:06:36 2009 +0200 cryptdlg: Add missing encoding info to the German resource file. The file is already UTF-8. --- dlls/cryptdlg/cryptdlg_De.rc | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/cryptdlg/cryptdlg_De.rc b/dlls/cryptdlg/cryptdlg_De.rc index d3181ef..cd3fa96 100644 --- a/dlls/cryptdlg/cryptdlg_De.rc +++ b/dlls/cryptdlg/cryptdlg_De.rc @@ -20,6 +20,8 @@ #include "cryptres.h" +#pragma code_page(65001) + LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL STRINGTABLE DISCARDABLE
1
0
0
0
Michael Stefaniuc : oleacc: Add missing encoding info to the German resource file.
by Alexandre Julliard
07 Jul '09
07 Jul '09
Module: wine Branch: master Commit: b880d71e28dd2ac82f689a442b26b7f0284ff45a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b880d71e28dd2ac82f689a442…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Tue Jul 7 11:06:26 2009 +0200 oleacc: Add missing encoding info to the German resource file. The file is already UTF-8. --- dlls/oleacc/oleacc_De.rc | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/oleacc/oleacc_De.rc b/dlls/oleacc/oleacc_De.rc index f39ff39..f15cc2d 100644 --- a/dlls/oleacc/oleacc_De.rc +++ b/dlls/oleacc/oleacc_De.rc @@ -20,6 +20,8 @@ #include "oleacc.h" +#pragma code_page(65001) + LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL STRINGTABLE DISCARDABLE
1
0
0
0
Alexandre Julliard : shell32/tests: Revive the test for CSIDL_SYSTEMX86.
by Alexandre Julliard
07 Jul '09
07 Jul '09
Module: wine Branch: master Commit: 7af70c2c9736883348c7a490d9e18beb131fe6c6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7af70c2c9736883348c7a490d…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 7 11:48:25 2009 +0200 shell32/tests: Revive the test for CSIDL_SYSTEMX86. --- dlls/shell32/tests/shellpath.c | 18 ++++++++++++++---- 1 files changed, 14 insertions(+), 4 deletions(-) diff --git a/dlls/shell32/tests/shellpath.c b/dlls/shell32/tests/shellpath.c index 4cacb08..b5b1967 100644 --- a/dlls/shell32/tests/shellpath.c +++ b/dlls/shell32/tests/shellpath.c @@ -89,6 +89,7 @@ static HRESULT (WINAPI *pSHGetSpecialFolderLocation)(HWND, int, LPITEMIDLIST *); static LPITEMIDLIST (WINAPI *pILFindLastID)(LPCITEMIDLIST); static int (WINAPI *pSHFileOperationA)(LPSHFILEOPSTRUCTA); static HRESULT (WINAPI *pSHGetMalloc)(LPMALLOC *); +static UINT (WINAPI *pGetSystemWow64DirectoryA)(LPSTR,UINT); static DLLVERSIONINFO shellVersion = { 0 }; static LPMALLOC pMalloc; static const BYTE guidType[] = { PT_GUID }; @@ -684,10 +685,17 @@ static void testSystemDir(void) "GetSystemDirectory returns %s SHGetSpecialFolderPath returns %s\n", systemDir, systemShellPath); } - /* CSIDL_SYSTEMX86 isn't checked in the same way, since it's different - * on Win64 (and non-x86 Windows systems, if there are any still in - * existence) than on Win32. - */ + + if (!pGetSystemWow64DirectoryA || !pGetSystemWow64DirectoryA(systemDir, sizeof(systemDir))) + GetSystemDirectoryA(systemDir, sizeof(systemDir)); + myPathRemoveBackslashA(systemDir); + if (pSHGetSpecialFolderPathA(NULL, systemShellPath, CSIDL_SYSTEMX86, FALSE)) + { + myPathRemoveBackslashA(systemShellPath); + ok(!lstrcmpiA(systemDir, systemShellPath), + "GetSystemDirectory returns %s SHGetSpecialFolderPath returns %s\n", + systemDir, systemShellPath); + } } /* Globals used by subprocesses */ @@ -871,6 +879,8 @@ START_TEST(shellpath) if (!init()) return; loadShell32(); + pGetSystemWow64DirectoryA = (void *)GetProcAddress( GetModuleHandleA("kernel32.dll"), + "GetSystemWow64DirectoryA" ); if (myARGC >= 3) doChild(myARGV[2]);
1
0
0
0
Alexandre Julliard : shell32: Add support for the CSIDL_SYSTEMX86 folder.
by Alexandre Julliard
07 Jul '09
07 Jul '09
Module: wine Branch: master Commit: 43e90c8ff74b89c45351f2efe43f3793f8a84098 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=43e90c8ff74b89c45351f2efe…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 7 11:47:58 2009 +0200 shell32: Add support for the CSIDL_SYSTEMX86 folder. --- dlls/shell32/shellpath.c | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/dlls/shell32/shellpath.c b/dlls/shell32/shellpath.c index 2434e9a..44f0750 100644 --- a/dlls/shell32/shellpath.c +++ b/dlls/shell32/shellpath.c @@ -812,6 +812,7 @@ typedef enum _CSIDL_Type { CSIDL_Type_NonExistent, CSIDL_Type_WindowsPath, CSIDL_Type_SystemPath, + CSIDL_Type_SystemX86Path, } CSIDL_Type; typedef struct @@ -1029,7 +1030,7 @@ static const CSIDL_DATA CSIDL_Data[] = NULL }, { /* 0x29 - CSIDL_SYSTEMX86 */ - CSIDL_Type_NonExistent, + CSIDL_Type_SystemX86Path, NULL, NULL }, @@ -1782,6 +1783,17 @@ HRESULT WINAPI SHGetFolderPathAndSubDirW( } hr = S_OK; break; + case CSIDL_Type_SystemX86Path: + if (!GetSystemWow64DirectoryW(szTemp, MAX_PATH)) GetSystemDirectoryW(szTemp, MAX_PATH); + if (CSIDL_Data[folder].szDefaultPath && + !IS_INTRESOURCE(CSIDL_Data[folder].szDefaultPath) && + *CSIDL_Data[folder].szDefaultPath) + { + PathAddBackslashW(szTemp); + strcatW(szTemp, CSIDL_Data[folder].szDefaultPath); + } + hr = S_OK; + break; case CSIDL_Type_CurrVer: hr = _SHGetCurrentVersionPath(dwFlags, folder, szTemp); break;
1
0
0
0
Alexandre Julliard : kernel32: Add implementation of GetSystemWow64DirectoryA/W.
by Alexandre Julliard
07 Jul '09
07 Jul '09
Module: wine Branch: master Commit: 03d6da0894b3a3f9c3b37b36b2c70d7c2a4ce831 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=03d6da0894b3a3f9c3b37b36b…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 7 11:42:03 2009 +0200 kernel32: Add implementation of GetSystemWow64DirectoryA/W. --- dlls/kernel32/kernel_private.h | 1 + dlls/kernel32/path.c | 28 ++++++++++++++++++++++------ dlls/kernel32/process.c | 15 +++++++++++++++ include/winbase.h | 3 +++ 4 files changed, 41 insertions(+), 6 deletions(-) diff --git a/dlls/kernel32/kernel_private.h b/dlls/kernel32/kernel_private.h index b23aedf..39a5e23 100644 --- a/dlls/kernel32/kernel_private.h +++ b/dlls/kernel32/kernel_private.h @@ -71,6 +71,7 @@ extern HANDLE dos_handles[DOS_TABLE_SIZE]; extern const WCHAR *DIR_Windows; extern const WCHAR *DIR_System; +extern const WCHAR *DIR_SysWow64; extern VOID SYSLEVEL_CheckNotLevel( INT level ); diff --git a/dlls/kernel32/path.c b/dlls/kernel32/path.c index 0b3a87e..299db1c 100644 --- a/dlls/kernel32/path.c +++ b/dlls/kernel32/path.c @@ -1521,10 +1521,22 @@ UINT WINAPI GetSystemDirectoryA( LPSTR path, UINT count ) * - On Win32 we should returns ERROR_CALL_NOT_IMPLEMENTED * - On Win64 we should returns the SysWow64 (system64) directory */ -UINT WINAPI GetSystemWow64DirectoryW( LPWSTR lpBuffer, UINT uSize ) +UINT WINAPI GetSystemWow64DirectoryW( LPWSTR path, UINT count ) { - SetLastError( ERROR_CALL_NOT_IMPLEMENTED ); - return 0; + UINT len; + + if (!DIR_SysWow64) + { + SetLastError( ERROR_CALL_NOT_IMPLEMENTED ); + return 0; + } + len = strlenW( DIR_SysWow64 ) + 1; + if (path && count >= len) + { + strcpyW( path, DIR_SysWow64 ); + len--; + } + return len; } @@ -1533,10 +1545,14 @@ UINT WINAPI GetSystemWow64DirectoryW( LPWSTR lpBuffer, UINT uSize ) * * See comment for GetWindowsWow64DirectoryW. */ -UINT WINAPI GetSystemWow64DirectoryA( LPSTR lpBuffer, UINT uSize ) +UINT WINAPI GetSystemWow64DirectoryA( LPSTR path, UINT count ) { - SetLastError( ERROR_CALL_NOT_IMPLEMENTED ); - return 0; + if (!DIR_SysWow64) + { + SetLastError( ERROR_CALL_NOT_IMPLEMENTED ); + return 0; + } + return copy_filename_WtoA( DIR_SysWow64, path, count ); } diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c index 6fde35b..4e74782 100644 --- a/dlls/kernel32/process.c +++ b/dlls/kernel32/process.c @@ -76,11 +76,13 @@ static UINT process_error_mode; static DWORD shutdown_flags = 0; static DWORD shutdown_priority = 0x280; static DWORD process_dword; +static BOOL is_wow64; HMODULE kernel32_handle = 0; const WCHAR *DIR_Windows = NULL; const WCHAR *DIR_System = NULL; +const WCHAR *DIR_SysWow64 = NULL; /* Process flags */ #define PDB32_DEBUGGED 0x0001 /* Process is being debugged */ @@ -822,6 +824,7 @@ static void init_windows_dirs(void) static const WCHAR winsysdirW[] = {'w','i','n','s','y','s','d','i','r',0}; static const WCHAR default_windirW[] = {'C',':','\\','w','i','n','d','o','w','s',0}; static const WCHAR default_sysdirW[] = {'\\','s','y','s','t','e','m','3','2',0}; + static const WCHAR default_syswow64W[] = {'\\','s','y','s','w','o','w','6','4',0}; DWORD len; WCHAR *buffer; @@ -849,6 +852,17 @@ static void init_windows_dirs(void) DIR_System = buffer; } +#ifndef _WIN64 /* SysWow64 is always defined on 64-bit */ + if (is_wow64) +#endif + { + len = strlenW( DIR_Windows ); + buffer = HeapAlloc( GetProcessHeap(), 0, len * sizeof(WCHAR) + sizeof(default_syswow64W) ); + memcpy( buffer, DIR_Windows, len * sizeof(WCHAR) ); + memcpy( buffer + len, default_syswow64W, sizeof(default_syswow64W) ); + DIR_SysWow64 = buffer; + } + if (!CreateDirectoryW( DIR_Windows, NULL ) && GetLastError() != ERROR_ALREADY_EXISTS) ERR( "directory %s could not be created, error %u\n", debugstr_w(DIR_Windows), GetLastError() ); @@ -1010,6 +1024,7 @@ void CDECL __wine_kernel_init(void) setbuf(stdout,NULL); setbuf(stderr,NULL); kernel32_handle = GetModuleHandleW(kernel32W); + IsWow64Process( GetCurrentProcess(), &is_wow64 ); LOCALE_Init(); diff --git a/include/winbase.h b/include/winbase.h index a7eaf9d..d7d8773 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -1726,6 +1726,9 @@ WINBASEAPI VOID WINAPI GetSystemTimeAsFileTime(LPFILETIME); WINBASEAPI UINT WINAPI GetSystemWindowsDirectoryA(LPSTR,UINT); WINBASEAPI UINT WINAPI GetSystemWindowsDirectoryW(LPWSTR,UINT); #define GetSystemWindowsDirectory WINELIB_NAME_AW(GetSystemWindowsDirectory) +WINBASEAPI UINT WINAPI GetSystemWow64DirectoryA(LPSTR,UINT); +WINBASEAPI UINT WINAPI GetSystemWow64DirectoryW(LPWSTR,UINT); +#define GetSystemWow64Directory WINELIB_NAME_AW(GetSystemWow64Directory) WINBASEAPI DWORD WINAPI GetTapeParameters(HANDLE,DWORD,LPDWORD,LPVOID); WINBASEAPI DWORD WINAPI GetTapePosition(HANDLE,DWORD,LPDWORD,LPDWORD,LPDWORD); WINBASEAPI DWORD WINAPI GetTapeStatus(HANDLE);
1
0
0
0
Alexandre Julliard : ntdll: Support querying the Wow64 state of other processes.
by Alexandre Julliard
07 Jul '09
07 Jul '09
Module: wine Branch: master Commit: 12c90b04dc3b95f5b15d4d64cd3ebaa1374f2f59 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=12c90b04dc3b95f5b15d4d64c…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 7 11:38:19 2009 +0200 ntdll: Support querying the Wow64 state of other processes. --- dlls/ntdll/ntdll_misc.h | 1 + dlls/ntdll/process.c | 14 +++++++++++++- dlls/ntdll/server.c | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/dlls/ntdll/ntdll_misc.h b/dlls/ntdll/ntdll_misc.h index 3032553..ea2234a 100644 --- a/dlls/ntdll/ntdll_misc.h +++ b/dlls/ntdll/ntdll_misc.h @@ -71,6 +71,7 @@ extern void virtual_init_threading(void); /* server support */ extern timeout_t server_start_time; +extern unsigned int server_cpus; extern int is_wow64; extern void server_init_process(void); extern NTSTATUS server_init_process_done(void); diff --git a/dlls/ntdll/process.c b/dlls/ntdll/process.c index 9ec5513..6258569 100644 --- a/dlls/ntdll/process.c +++ b/dlls/ntdll/process.c @@ -307,7 +307,19 @@ NTSTATUS WINAPI NtQueryInformationProcess( case ProcessWow64Information: if (ProcessInformationLength == sizeof(DWORD)) { - *(DWORD *)ProcessInformation = is_wow64; + DWORD val = 0; + + if (ProcessHandle == GetCurrentProcess()) val = is_wow64; + else if (server_cpus & (1 << CPU_x86_64)) + { + SERVER_START_REQ( get_process_info ) + { + req->handle = wine_server_obj_handle( ProcessHandle ); + if (!(ret = wine_server_call( req ))) val = (reply->cpu != CPU_x86_64); + } + SERVER_END_REQ; + } + *(DWORD *)ProcessInformation = val; len = sizeof(DWORD); } else ret = STATUS_INFO_LENGTH_MISMATCH; diff --git a/dlls/ntdll/server.c b/dlls/ntdll/server.c index a4f2953..1eea402 100644 --- a/dlls/ntdll/server.c +++ b/dlls/ntdll/server.c @@ -94,7 +94,7 @@ static const enum cpu_type client_cpu = CPU_SPARC; #error Unsupported CPU #endif -static unsigned int server_cpus; +unsigned int server_cpus = 0; int is_wow64 = FALSE; #ifndef HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS
1
0
0
0
Alexandre Julliard : server: Return the process CPU in the get_process_info request.
by Alexandre Julliard
07 Jul '09
07 Jul '09
Module: wine Branch: master Commit: 6056e8a52b8a931bc54306044fb991028fa7f1cf URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6056e8a52b8a931bc54306044…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue Jul 7 11:37:47 2009 +0200 server: Return the process CPU in the get_process_info request. --- include/wine/server_protocol.h | 4 +++- server/process.c | 1 + server/protocol.def | 1 + server/request.h | 3 ++- server/trace.c | 1 + 5 files changed, 8 insertions(+), 2 deletions(-) diff --git a/include/wine/server_protocol.h b/include/wine/server_protocol.h index f819686..c7566ea 100644 --- a/include/wine/server_protocol.h +++ b/include/wine/server_protocol.h @@ -693,6 +693,8 @@ struct get_process_info_reply timeout_t end_time; int exit_code; int priority; + cpu_type_t cpu; + char __pad_60[4]; }; @@ -5310,6 +5312,6 @@ union generic_reply struct set_window_layered_info_reply set_window_layered_info_reply; }; -#define SERVER_PROTOCOL_VERSION 386 +#define SERVER_PROTOCOL_VERSION 387 #endif /* __WINE_WINE_SERVER_PROTOCOL_H */ diff --git a/server/process.c b/server/process.c index 8a4fb15..2b8d8f6 100644 --- a/server/process.c +++ b/server/process.c @@ -1068,6 +1068,7 @@ DECL_HANDLER(get_process_info) reply->peb = process->peb; reply->start_time = process->start_time; reply->end_time = process->end_time; + reply->cpu = process->cpu; release_object( process ); } } diff --git a/server/protocol.def b/server/protocol.def index 8ae653b..e871736 100644 --- a/server/protocol.def +++ b/server/protocol.def @@ -660,6 +660,7 @@ typedef union timeout_t end_time; /* process end time */ int exit_code; /* process exit code */ int priority; /* priority class */ + cpu_type_t cpu; /* CPU that this process is running on */ @END diff --git a/server/request.h b/server/request.h index f85756c..4fc3bd6 100644 --- a/server/request.h +++ b/server/request.h @@ -694,7 +694,8 @@ C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, start_time) == 32 ); C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, end_time) == 40 ); C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, exit_code) == 48 ); C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, priority) == 52 ); -C_ASSERT( sizeof(struct get_process_info_reply) == 56 ); +C_ASSERT( FIELD_OFFSET(struct get_process_info_reply, cpu) == 56 ); +C_ASSERT( sizeof(struct get_process_info_reply) == 64 ); C_ASSERT( FIELD_OFFSET(struct set_process_info_request, handle) == 12 ); C_ASSERT( FIELD_OFFSET(struct set_process_info_request, mask) == 16 ); C_ASSERT( FIELD_OFFSET(struct set_process_info_request, priority) == 20 ); diff --git a/server/trace.c b/server/trace.c index 6781ef7..d24f653 100644 --- a/server/trace.c +++ b/server/trace.c @@ -1152,6 +1152,7 @@ static void dump_get_process_info_reply( const struct get_process_info_reply *re dump_timeout( ", end_time=", &req->end_time ); fprintf( stderr, ", exit_code=%d", req->exit_code ); fprintf( stderr, ", priority=%d", req->priority ); + dump_cpu_type( ", cpu=", &req->cpu ); } static void dump_set_process_info_request( const struct set_process_info_request *req )
1
0
0
0
Vladimir Pankratov : regedit: Implement open last key at startup.
by Alexandre Julliard
07 Jul '09
07 Jul '09
Module: wine Branch: master Commit: 5ce04f7ffc0db236d229fbe46d4d42bbf572506a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5ce04f7ffc0db236d229fbe46…
Author: Vladimir Pankratov <scriptkid(a)mail.ru> Date: Thu Jul 2 21:29:44 2009 +0500 regedit: Implement open last key at startup. --- programs/regedit/childwnd.c | 51 +++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 51 insertions(+), 0 deletions(-) diff --git a/programs/regedit/childwnd.c b/programs/regedit/childwnd.c index 74c8b66..a7e4666 100644 --- a/programs/regedit/childwnd.c +++ b/programs/regedit/childwnd.c @@ -24,6 +24,7 @@ #include <stdio.h> #include "main.h" +#include "regproc.h" #include "wine/debug.h" #include "wine/unicode.h" @@ -33,6 +34,13 @@ WINE_DEFAULT_DEBUG_CHANNEL(regedit); ChildWnd* g_pChildWnd; static int last_split; +static const WCHAR wszLastKey[] = {'L','a','s','t','K','e','y',0}; +static const WCHAR wszKeyName[] = {'S','o','f','t','w','a','r','e','\\', + 'M','i','c','r','o','s','o','f','t','\\', + 'W','i','n','d','o','w','s','\\', + 'C','u','r','r','e','n','t','V','e','r','s','i','o','n','\\', + 'A','p','p','l','e','t','s','\\','R','e','g','e','d','i','t',0}; + /******************************************************************************* * Local module support methods */ @@ -222,6 +230,47 @@ static BOOL _CmdWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) } /******************************************************************************* + * get_last_key [internal] + * + * open last key + * + */ +static void get_last_key(HWND hwndTV) +{ + HKEY hkey; + WCHAR wszVal[KEY_MAX_LEN]; + DWORD dwSize = sizeof(wszVal); + + if (RegCreateKeyExW(HKEY_CURRENT_USER, wszKeyName, 0, NULL, 0, KEY_READ, NULL, &hkey, NULL) == ERROR_SUCCESS) + { + if (RegQueryValueExW(hkey, wszLastKey, NULL, NULL, (LPBYTE)wszVal, &dwSize) == ERROR_SUCCESS) + SendMessageW(hwndTV, TVM_SELECTITEM, TVGN_CARET, (LPARAM)FindPathInTree(hwndTV, wszVal)); + + RegCloseKey(hkey); + } +} + +/******************************************************************************* + * set_last_key [internal] + * + * save last key + * + */ +static void set_last_key(HWND hwndTV) +{ + HKEY hkey; + WCHAR *wszVal; + + if (RegCreateKeyExW(HKEY_CURRENT_USER, wszKeyName, 0, NULL, 0, KEY_WRITE, NULL, &hkey, NULL) == ERROR_SUCCESS) + { + wszVal = GetItemFullPath(g_pChildWnd->hTreeWnd, TreeView_GetSelection(g_pChildWnd->hTreeWnd), FALSE); + RegSetValueExW(hkey, wszLastKey, 0, REG_SZ, (LPBYTE)wszVal, KEY_MAX_LEN * sizeof(WCHAR)); + HeapFree(GetProcessHeap(), 0, wszVal); + RegCloseKey(hkey); + } +} + +/******************************************************************************* * * FUNCTION: ChildWndProc(HWND, unsigned, WORD, LONG) * @@ -245,6 +294,7 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa g_pChildWnd->hListWnd = CreateListView(hWnd, LIST_WINDOW/*, g_pChildWnd->szPath*/); g_pChildWnd->nFocusPanel = 1; SetFocus(g_pChildWnd->hTreeWnd); + get_last_key(g_pChildWnd->hTreeWnd); break; case WM_COMMAND: if (!_CmdWndProc(hWnd, message, wParam, lParam)) { @@ -266,6 +316,7 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPa } goto def; case WM_DESTROY: + set_last_key(g_pChildWnd->hTreeWnd); HeapFree(GetProcessHeap(), 0, g_pChildWnd); g_pChildWnd = NULL; PostQuitMessage(0);
1
0
0
0
Francois Gouget : ole32: Make apartment_addref() static.
by Alexandre Julliard
07 Jul '09
07 Jul '09
Module: wine Branch: master Commit: 3cbeae820dbb77bddaea3d65335ddc47cd04b798 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3cbeae820dbb77bddaea3d653…
Author: Francois Gouget <fgouget(a)free.fr> Date: Mon Jul 6 08:09:06 2009 +0200 ole32: Make apartment_addref() static. --- dlls/ole32/compobj.c | 2 +- dlls/ole32/compobj_private.h | 1 - 2 files changed, 1 insertions(+), 2 deletions(-) diff --git a/dlls/ole32/compobj.c b/dlls/ole32/compobj.c index 801caf0..b2013cf 100644 --- a/dlls/ole32/compobj.c +++ b/dlls/ole32/compobj.c @@ -312,7 +312,7 @@ static void COMPOBJ_DllList_Free(void) * Manage apartments. */ -DWORD apartment_addref(struct apartment *apt) +static DWORD apartment_addref(struct apartment *apt) { DWORD refs = InterlockedIncrement(&apt->refs); TRACE("%s: before = %d\n", wine_dbgstr_longlong(apt->oxid), refs - 1); diff --git a/dlls/ole32/compobj_private.h b/dlls/ole32/compobj_private.h index 58e3856..fb05934 100644 --- a/dlls/ole32/compobj_private.h +++ b/dlls/ole32/compobj_private.h @@ -252,7 +252,6 @@ void OLEDD_UnInitialize(void); APARTMENT *apartment_findfromoxid(OXID oxid, BOOL ref); APARTMENT *apartment_findfromtid(DWORD tid); -DWORD apartment_addref(struct apartment *apt); DWORD apartment_release(struct apartment *apt); HRESULT apartment_disconnectproxies(struct apartment *apt); void apartment_disconnectobject(struct apartment *apt, void *object);
1
0
0
0
Francois Gouget : ole32: Reorder some compobj functions to avoid forward declarations.
by Alexandre Julliard
07 Jul '09
07 Jul '09
Module: wine Branch: master Commit: f8afcdbb7c1e92b9e0f93f363a814a8766974b49 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f8afcdbb7c1e92b9e0f93f363…
Author: Francois Gouget <fgouget(a)free.fr> Date: Mon Jul 6 08:08:27 2009 +0200 ole32: Reorder some compobj functions to avoid forward declarations. --- dlls/ole32/compobj.c | 794 ++++++++++++++++++++++++------------------------- 1 files changed, 389 insertions(+), 405 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=f8afcdbb7c1e92b9e0f93…
1
0
0
0
← Newer
1
...
75
76
77
78
79
80
81
...
107
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
Results per page:
10
25
50
100
200