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
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
December 2007
----- 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
3 participants
824 discussions
Start a n
N
ew thread
Andrew Talbot : mapi32: Remove unneeded casts.
by Alexandre Julliard
21 Dec '07
21 Dec '07
Module: wine Branch: master Commit: d05a511d0b7bdd611ba711752de1603ac0375217 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d05a511d0b7bdd611ba711752…
Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Thu Dec 20 12:17:37 2007 +0000 mapi32: Remove unneeded casts. --- dlls/mapi32/imalloc.c | 8 ++++---- dlls/mapi32/prop.c | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dlls/mapi32/imalloc.c b/dlls/mapi32/imalloc.c index 1562b7b..c5b4570 100644 --- a/dlls/mapi32/imalloc.c +++ b/dlls/mapi32/imalloc.c @@ -127,9 +127,9 @@ static LPVOID WINAPI IMAPIMalloc_fnRealloc(LPMALLOC iface, LPVOID pv, DWORD cb) return LocalAlloc(LMEM_FIXED, cb); if (cb) - return LocalReAlloc((HANDLE) pv, cb, LMEM_MOVEABLE); + return LocalReAlloc(pv, cb, LMEM_MOVEABLE); - LocalFree((HANDLE) pv); + LocalFree(pv); return NULL; } @@ -139,7 +139,7 @@ static LPVOID WINAPI IMAPIMalloc_fnRealloc(LPMALLOC iface, LPVOID pv, DWORD cb) static void WINAPI IMAPIMalloc_fnFree(LPMALLOC iface, LPVOID pv) { TRACE("(%p)->(%p)\n", iface, pv); - LocalFree((HANDLE) pv); + LocalFree(pv); } /************************************************************************** @@ -148,7 +148,7 @@ static void WINAPI IMAPIMalloc_fnFree(LPMALLOC iface, LPVOID pv) static DWORD WINAPI IMAPIMalloc_fnGetSize(LPMALLOC iface, LPVOID pv) { TRACE("(%p)->(%p)\n", iface, pv); - return LocalSize((HANDLE) pv); + return LocalSize(pv); } /************************************************************************** diff --git a/dlls/mapi32/prop.c b/dlls/mapi32/prop.c index 484e64a..e58df4d 100644 --- a/dlls/mapi32/prop.c +++ b/dlls/mapi32/prop.c @@ -928,7 +928,7 @@ SCODE WINAPI ScRelocProps(int cValues, LPSPropValue lpProps, LPVOID lpOld, LPVOID lpNew, ULONG *lpCount) { static const BOOL bBadPtr = TRUE; /* Windows bug - Assumes source is bad */ - LPSPropValue lpDest = (LPSPropValue)lpProps; + LPSPropValue lpDest = lpProps; ULONG ulCount = cValues * sizeof(SPropValue); ULONG ulLen, i; int iter; @@ -964,7 +964,7 @@ SCODE WINAPI ScRelocProps(int cValues, LPSPropValue lpProps, LPVOID lpOld, break; case PT_STRING8: ulLen = bBadPtr ? 0 : lstrlenA(lpDest->Value.lpszA) + 1u; - lpDest->Value.lpszA = (LPSTR)RELOC_PTR(lpDest->Value.lpszA); + lpDest->Value.lpszA = RELOC_PTR(lpDest->Value.lpszA); if (bBadPtr) ulLen = lstrlenA(lpDest->Value.lpszA) + 1u; ulCount += ulLen; @@ -999,7 +999,7 @@ SCODE WINAPI ScRelocProps(int cValues, LPSPropValue lpProps, LPVOID lpOld, { ULONG ulStrLen = bBadPtr ? 0 : lstrlenA(lpDest->Value.MVszA.lppszA[i]) + 1u; - lpDest->Value.MVszA.lppszA[i] = (LPSTR)RELOC_PTR(lpDest->Value.MVszA.lppszA[i]); + lpDest->Value.MVszA.lppszA[i] = RELOC_PTR(lpDest->Value.MVszA.lppszA[i]); if (bBadPtr) ulStrLen = lstrlenA(lpDest->Value.MVszA.lppszA[i]) + 1u; ulCount += ulStrLen;
1
0
0
0
Andrew Talbot : kernel32: Remove unneeded casts.
by Alexandre Julliard
21 Dec '07
21 Dec '07
Module: wine Branch: master Commit: ca6003b8f07392b384e4c9f96f32d7bc503fa7b1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ca6003b8f07392b384e4c9f96…
Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Thu Dec 20 12:17:33 2007 +0000 kernel32: Remove unneeded casts. --- dlls/kernel32/thunk.c | 10 +++++----- dlls/kernel32/toolhelp.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/kernel32/thunk.c b/dlls/kernel32/thunk.c index c35302e..5487b34 100644 --- a/dlls/kernel32/thunk.c +++ b/dlls/kernel32/thunk.c @@ -709,7 +709,7 @@ DWORD WINAPI ThunkInitLS( if (!addr[1]) return 0; - *(DWORD*)thunk = addr[1]; + *thunk = addr[1]; return addr[1]; } @@ -1645,7 +1645,7 @@ static BOOL THUNK_Init(void) ThunkletHeap = HeapCreate( 0, 0x10000, 0x10000 ); if (!ThunkletHeap) return FALSE; - ThunkletCodeSel = SELECTOR_AllocBlock( (void *)ThunkletHeap, 0x10000, WINE_LDT_FLAGS_CODE ); + ThunkletCodeSel = SELECTOR_AllocBlock( ThunkletHeap, 0x10000, WINE_LDT_FLAGS_CODE ); thunk = HeapAlloc( ThunkletHeap, 0, 5 ); if (!thunk) return FALSE; @@ -1712,7 +1712,7 @@ static FARPROC THUNK_AllocLSThunklet( SEGPTR target, DWORD relay, thunk->jmp_glue = 0xE9; thunk->target = (DWORD)target; - thunk->relay = (DWORD)relay; + thunk->relay = relay; thunk->glue = (DWORD)glue - (DWORD)&thunk->type; thunk->type = THUNKLET_TYPE_LS; @@ -1746,7 +1746,7 @@ static SEGPTR THUNK_AllocSLThunklet( FARPROC target, DWORD relay, thunk->jmp_glue = 0xEA; thunk->target = (DWORD)target; - thunk->relay = (DWORD)relay; + thunk->relay = relay; thunk->glue = (DWORD)glue; thunk->type = THUNKLET_TYPE_SL; @@ -2076,7 +2076,7 @@ SEGPTR WINAPI Get16DLLAddress(HMODULE16 handle, LPSTR func_name) if (!code_sel32) { if (!ThunkletHeap) THUNK_Init(); - code_sel32 = SELECTOR_AllocBlock( (void *)ThunkletHeap, 0x10000, + code_sel32 = SELECTOR_AllocBlock( ThunkletHeap, 0x10000, WINE_LDT_FLAGS_CODE | WINE_LDT_FLAGS_32BIT ); if (!code_sel32) return 0; } diff --git a/dlls/kernel32/toolhelp.c b/dlls/kernel32/toolhelp.c index 0464b6c..436a08f 100644 --- a/dlls/kernel32/toolhelp.c +++ b/dlls/kernel32/toolhelp.c @@ -98,7 +98,7 @@ static BOOL fetch_module( DWORD process, DWORD flags, LDR_MODULE** ldr_mod, ULON &pbi, sizeof(pbi), NULL ); if (!status) { - if (ReadProcessMemory( hProcess, &((PEB*)pbi.PebBaseAddress)->LdrData, + if (ReadProcessMemory( hProcess, &pbi.PebBaseAddress->LdrData, &pLdrData, sizeof(pLdrData), NULL ) && ReadProcessMemory( hProcess, &pLdrData->InLoadOrderModuleList.Flink,
1
0
0
0
Huw Davies : inetcomm: Implement IMimeBody_GetOffsets.
by Alexandre Julliard
21 Dec '07
21 Dec '07
Module: wine Branch: master Commit: 3fa10f79f472fb9ded091e1f7e09b00b05ba77ec URL:
http://source.winehq.org/git/wine.git/?a=commit;h=3fa10f79f472fb9ded091e1f7…
Author: Huw Davies <huw(a)codeweavers.com> Date: Thu Dec 20 15:14:35 2007 +0000 inetcomm: Implement IMimeBody_GetOffsets. --- dlls/inetcomm/mimeole.c | 24 ++++++++++++++++++++++-- dlls/inetcomm/tests/mimeole.c | 9 +++++++++ 2 files changed, 31 insertions(+), 2 deletions(-) diff --git a/dlls/inetcomm/mimeole.c b/dlls/inetcomm/mimeole.c index 6b5c75d..a353e5c 100644 --- a/dlls/inetcomm/mimeole.c +++ b/dlls/inetcomm/mimeole.c @@ -107,6 +107,7 @@ typedef struct MimeBody ENCODINGTYPE encoding; void *data; IID data_iid; + BODYOFFSETS body_offsets; } MimeBody; static inline MimeBody *impl_from_IMimeBody( IMimeBody *iface ) @@ -857,8 +858,13 @@ static HRESULT WINAPI MimeBody_GetOffsets( IMimeBody* iface, LPBODYOFFSETS pOffsets) { - FIXME("stub\n"); - return E_NOTIMPL; + MimeBody *This = impl_from_IMimeBody(iface); + TRACE("(%p)->(%p)\n", This, pOffsets); + + *pOffsets = This->body_offsets; + + if(This->body_offsets.cbBodyEnd == 0) return MIME_E_NO_DATA; + return S_OK; } static HRESULT WINAPI MimeBody_GetCurrentEncoding( @@ -1037,11 +1043,21 @@ static IMimeBodyVtbl body_vtbl = MimeBody_GetHandle }; +static HRESULT MimeBody_set_offsets(MimeBody *body, const BODYOFFSETS *offsets) +{ + TRACE("setting offsets to %d, %d, %d, %d\n", offsets->cbBoundaryStart, + offsets->cbHeaderStart, offsets->cbBodyStart, offsets->cbBodyEnd); + + body->body_offsets = *offsets; + return S_OK; +} + #define FIRST_CUSTOM_PROP_ID 0x100 HRESULT MimeBody_create(IUnknown *outer, void **obj) { MimeBody *This; + BODYOFFSETS body_offsets; *obj = NULL; @@ -1062,6 +1078,10 @@ HRESULT MimeBody_create(IUnknown *outer, void **obj) This->data = NULL; This->data_iid = IID_NULL; + body_offsets.cbBoundaryStart = body_offsets.cbHeaderStart = 0; + body_offsets.cbBodyStart = body_offsets.cbBodyEnd = 0; + MimeBody_set_offsets(This, &body_offsets); + *obj = (IMimeBody *)&This->lpVtbl; return S_OK; } diff --git a/dlls/inetcomm/tests/mimeole.c b/dlls/inetcomm/tests/mimeole.c index f5cd619..30451f3 100644 --- a/dlls/inetcomm/tests/mimeole.c +++ b/dlls/inetcomm/tests/mimeole.c @@ -94,6 +94,7 @@ static void test_CreateBody(void) ULONG count, found_param, i; MIMEPARAMINFO *param_info; IMimeAllocator *alloc; + BODYOFFSETS offsets; hr = CoCreateInstance(&CLSID_IMimeBody, NULL, CLSCTX_INPROC_SERVER, &IID_IMimeBody, (void**)&body); ok(hr == S_OK, "ret %08x\n", hr); @@ -138,6 +139,14 @@ static void test_CreateBody(void) ok(hr == S_OK, "ret %08x\n", hr); ok(enc == IET_8BIT, "encoding %d\n", enc); + memset(&offsets, 0xcc, sizeof(offsets)); + hr = IMimeBody_GetOffsets(body, &offsets); + ok(hr == MIME_E_NO_DATA, "ret %08x\n", hr); + ok(offsets.cbBoundaryStart == 0, "got %d\n", offsets.cbBoundaryStart); + ok(offsets.cbHeaderStart == 0, "got %d\n", offsets.cbHeaderStart); + ok(offsets.cbBodyStart == 0, "got %d\n", offsets.cbBodyStart); + ok(offsets.cbBodyEnd == 0, "got %d\n", offsets.cbBodyEnd); + hr = MimeOleGetAllocator(&alloc); ok(hr == S_OK, "ret %08x\n", hr);
1
0
0
0
Ivan Sinitsin : winefile: Save font settings in registry.
by Alexandre Julliard
21 Dec '07
21 Dec '07
Module: wine Branch: master Commit: 7a465ce9043336545d0b16c5c114be3b52580451 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7a465ce9043336545d0b16c5c…
Author: Ivan Sinitsin <ivan(a)etersoft.ru> Date: Thu Dec 20 16:15:16 2007 +0300 winefile: Save font settings in registry. --- programs/winefile/winefile.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c index 0574c37..4805a6b 100644 --- a/programs/winefile/winefile.c +++ b/programs/winefile/winefile.c @@ -66,6 +66,7 @@ static const WCHAR reg_start_x[] = { 's','t','a','r','t','X','\0'}; static const WCHAR reg_start_y[] = { 's','t','a','r','t','Y','\0'}; static const WCHAR reg_width[] = { 'w','i','d','t','h','\0'}; static const WCHAR reg_height[] = { 'h','e','i','g','h','t','\0'}; +static const WCHAR reg_logfont[] = { 'l','o','g','f','o','n','t','\0'}; enum ENTRY_TYPE { ET_WINDOWS, @@ -1645,6 +1646,7 @@ static windowOptions load_registry_settings(void) DWORD type; HKEY hKey; windowOptions opts; + LOGFONT logfont; RegOpenKeyExW( HKEY_CURRENT_USER, registry_key, 0, KEY_QUERY_VALUE, &hKey ); @@ -1666,9 +1668,14 @@ static windowOptions load_registry_settings(void) if( RegQueryValueExW( hKey, reg_height, NULL, &type, (LPBYTE) &opts.height, &size ) != ERROR_SUCCESS ) opts.height = CW_USEDEFAULT; + size=sizeof(logfont); + if( RegQueryValueExW( hKey, reg_logfont, NULL, &type, + (LPBYTE) &logfont, &size ) != ERROR_SUCCESS ) + GetObject(GetStockObject(DEFAULT_GUI_FONT),sizeof(logfont),&logfont); RegCloseKey( hKey ); + Globals.hfont = CreateFontIndirect(&logfont); return opts; } @@ -1677,6 +1684,7 @@ static void save_registry_settings(void) WINDOWINFO wi; HKEY hKey; INT width, height; + LOGFONT logfont; wi.cbSize = sizeof( WINDOWINFO ); GetWindowInfo(Globals.hMainWnd, &wi); @@ -1704,6 +1712,9 @@ static void save_registry_settings(void) (LPBYTE) &width, sizeof(DWORD) ); RegSetValueExW( hKey, reg_height, 0, REG_DWORD, (LPBYTE) &height, sizeof(DWORD) ); + GetObject(Globals.hfont, sizeof(logfont), &logfont); + RegSetValueExW( hKey, reg_logfont, 0, REG_BINARY, + (LPBYTE) &logfont, sizeof(LOGFONT) ); /* TODO: Save more settings here (List vs. Detailed View, etc.) */ RegCloseKey( hKey );
1
0
0
0
Alexandre Julliard : ntdll: Increase the buffer size dynamically for relay debug lists.
by Alexandre Julliard
21 Dec '07
21 Dec '07
Module: wine Branch: master Commit: 2835dc9fc9519799d931b88da76aeca0866dde0e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2835dc9fc9519799d931b88da…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Dec 20 16:59:07 2007 +0100 ntdll: Increase the buffer size dynamically for relay debug lists. --- dlls/ntdll/relay.c | 100 +++++++++++++++++++++------------------------------ 1 files changed, 41 insertions(+), 59 deletions(-) diff --git a/dlls/ntdll/relay.c b/dlls/ntdll/relay.c index a50ec34..2f819c4 100644 --- a/dlls/ntdll/relay.c +++ b/dlls/ntdll/relay.c @@ -27,6 +27,8 @@ #include <stdarg.h> #include <stdio.h> +#include "ntstatus.h" +#define WIN32_NO_STATUS #include "windef.h" #include "winternl.h" #include "wine/exception.h" @@ -133,6 +135,37 @@ static const WCHAR **build_list( const WCHAR *buffer ) return ret; } +/*********************************************************************** + * load_list_value + * + * Load a function list from a registry value. + */ +static const WCHAR **load_list( HKEY hkey, const WCHAR *value ) +{ + char initial_buffer[4096]; + char *buffer = initial_buffer; + DWORD count; + NTSTATUS status; + UNICODE_STRING name; + const WCHAR **list = NULL; + + RtlInitUnicodeString( &name, value ); + status = NtQueryValueKey( hkey, &name, KeyValuePartialInformation, buffer, sizeof(buffer), &count ); + if (status == STATUS_BUFFER_OVERFLOW) + { + buffer = RtlAllocateHeap( GetProcessHeap(), 0, count ); + status = NtQueryValueKey( hkey, &name, KeyValuePartialInformation, buffer, count, &count ); + } + if (status == STATUS_SUCCESS) + { + WCHAR *str = (WCHAR *)((KEY_VALUE_PARTIAL_INFORMATION *)buffer)->Data; + list = build_list( str ); + if (list) TRACE( "%s = %s\n", debugstr_w(value), debugstr_w(str) ); + } + + if (buffer != initial_buffer) RtlFreeHeap( GetProcessHeap(), 0, buffer ); + return list; +} /*********************************************************************** * init_debug_lists @@ -143,10 +176,7 @@ static void init_debug_lists(void) { OBJECT_ATTRIBUTES attr; UNICODE_STRING name; - char buffer[1024]; HANDLE root, hkey; - DWORD count; - WCHAR *str; static const WCHAR configW[] = {'S','o','f','t','w','a','r','e','\\', 'W','i','n','e','\\', 'D','e','b','u','g',0}; @@ -176,62 +206,14 @@ static void init_debug_lists(void) NtClose( root ); if (!hkey) return; - str = (WCHAR *)((KEY_VALUE_PARTIAL_INFORMATION *)buffer)->Data; - RtlInitUnicodeString( &name, RelayIncludeW ); - if (!NtQueryValueKey( hkey, &name, KeyValuePartialInformation, buffer, sizeof(buffer), &count )) - { - TRACE("RelayInclude = %s\n", debugstr_w(str) ); - debug_relay_includelist = build_list( str ); - } - - RtlInitUnicodeString( &name, RelayExcludeW ); - if (!NtQueryValueKey( hkey, &name, KeyValuePartialInformation, buffer, sizeof(buffer), &count )) - { - TRACE( "RelayExclude = %s\n", debugstr_w(str) ); - debug_relay_excludelist = build_list( str ); - } - - RtlInitUnicodeString( &name, SnoopIncludeW ); - if (!NtQueryValueKey( hkey, &name, KeyValuePartialInformation, buffer, sizeof(buffer), &count )) - { - TRACE_(snoop)( "SnoopInclude = %s\n", debugstr_w(str) ); - debug_snoop_includelist = build_list( str ); - } - - RtlInitUnicodeString( &name, SnoopExcludeW ); - if (!NtQueryValueKey( hkey, &name, KeyValuePartialInformation, buffer, sizeof(buffer), &count )) - { - TRACE_(snoop)( "SnoopExclude = %s\n", debugstr_w(str) ); - debug_snoop_excludelist = build_list( str ); - } - - RtlInitUnicodeString( &name, RelayFromIncludeW ); - if (!NtQueryValueKey( hkey, &name, KeyValuePartialInformation, buffer, sizeof(buffer), &count )) - { - TRACE("RelayFromInclude = %s\n", debugstr_w(str) ); - debug_from_relay_includelist = build_list( str ); - } - - RtlInitUnicodeString( &name, RelayFromExcludeW ); - if (!NtQueryValueKey( hkey, &name, KeyValuePartialInformation, buffer, sizeof(buffer), &count )) - { - TRACE( "RelayFromExclude = %s\n", debugstr_w(str) ); - debug_from_relay_excludelist = build_list( str ); - } - - RtlInitUnicodeString( &name, SnoopFromIncludeW ); - if (!NtQueryValueKey( hkey, &name, KeyValuePartialInformation, buffer, sizeof(buffer), &count )) - { - TRACE_(snoop)("SnoopFromInclude = %s\n", debugstr_w(str) ); - debug_from_snoop_includelist = build_list( str ); - } - - RtlInitUnicodeString( &name, SnoopFromExcludeW ); - if (!NtQueryValueKey( hkey, &name, KeyValuePartialInformation, buffer, sizeof(buffer), &count )) - { - TRACE_(snoop)( "SnoopFromExclude = %s\n", debugstr_w(str) ); - debug_from_snoop_excludelist = build_list( str ); - } + debug_relay_includelist = load_list( hkey, RelayIncludeW ); + debug_relay_excludelist = load_list( hkey, RelayExcludeW ); + debug_snoop_includelist = load_list( hkey, SnoopIncludeW ); + debug_snoop_excludelist = load_list( hkey, SnoopExcludeW ); + debug_from_relay_includelist = load_list( hkey, RelayFromIncludeW ); + debug_from_relay_excludelist = load_list( hkey, RelayFromExcludeW ); + debug_from_snoop_includelist = load_list( hkey, SnoopFromIncludeW ); + debug_from_snoop_excludelist = load_list( hkey, SnoopFromExcludeW ); NtClose( hkey ); }
1
0
0
0
Alexandre Julliard : advapi32: Start non-interactive services in a separate window station.
by Alexandre Julliard
21 Dec '07
21 Dec '07
Module: wine Branch: master Commit: 7593fac6327bc8e95848801c83ae00cfee547c54 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7593fac6327bc8e95848801c8…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Dec 20 16:44:36 2007 +0100 advapi32: Start non-interactive services in a separate window station. --- dlls/advapi32/service.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dlls/advapi32/service.c b/dlls/advapi32/service.c index f55077a..8a775ad 100644 --- a/dlls/advapi32/service.c +++ b/dlls/advapi32/service.c @@ -1578,6 +1578,12 @@ static DWORD service_start_process(struct sc_service *hsvc, LPDWORD ppid) handles[0] = service_get_event_handle( hsvc->name ); ZeroMemory(&si, sizeof(STARTUPINFOW)); si.cb = sizeof(STARTUPINFOW); + if (!(svc_type & SERVICE_INTERACTIVE_PROCESS)) + { + static WCHAR desktopW[] = {'_','_','w','i','n','e','s','e','r','v','i','c','e','_','w','i','n','s','t','a','t','i','o','n','\\','D','e','f','a','u','l','t',0}; + si.lpDesktop = desktopW; + } + r = CreateProcessW(NULL, path, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi); if (r) {
1
0
0
0
Alexandre Julliard : explorer: It no longer needs to be made a system process.
by Alexandre Julliard
21 Dec '07
21 Dec '07
Module: wine Branch: master Commit: a32873bfcc3f0e96cb7853797d3930668720a93a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a32873bfcc3f0e96cb7853797…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Dec 20 16:43:47 2007 +0100 explorer: It no longer needs to be made a system process. --- programs/explorer/desktop.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-) diff --git a/programs/explorer/desktop.c b/programs/explorer/desktop.c index 743da35..8d03094 100644 --- a/programs/explorer/desktop.c +++ b/programs/explorer/desktop.c @@ -31,8 +31,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(explorer); #define DESKTOP_CLASS_ATOM ((LPCWSTR)MAKEINTATOM(32769)) #define DESKTOP_ALL_ACCESS 0x01ff -extern HANDLE __wine_make_process_system(void); - static BOOL using_root; /* window procedure for the desktop window */ @@ -231,10 +229,6 @@ void manage_desktop( char *arg ) /* run the desktop message loop */ if (hwnd) { - /* we don't use the system process event, the server - * posts a WM_CLOSE when the last desktop user is gone */ - CloseHandle( __wine_make_process_system() ); - WINE_TRACE( "desktop message loop starting on hwnd %p\n", hwnd ); while (GetMessageW( &msg, 0, 0, 0 )) DispatchMessageW( &msg ); WINE_TRACE( "desktop message loop exiting for hwnd %p\n", hwnd );
1
0
0
0
Alexandre Julliard : server: Don' t give out full access to the system process event.
by Alexandre Julliard
21 Dec '07
21 Dec '07
Module: wine Branch: master Commit: 11750af32961f69da96cc04712f71cb4fc285383 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=11750af32961f69da96cc0471…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Dec 20 16:43:31 2007 +0100 server: Don't give out full access to the system process event. --- server/process.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/server/process.c b/server/process.c index 23a4ec0..a78eac4 100644 --- a/server/process.c +++ b/server/process.c @@ -1185,7 +1185,7 @@ DECL_HANDLER(make_process_system) make_object_static( (struct object *)user_process_event ); } - if (!(reply->event = alloc_handle( current->process, user_process_event, EVENT_ALL_ACCESS, 0 ))) + if (!(reply->event = alloc_handle( current->process, user_process_event, SYNCHRONIZE, 0 ))) return; if (!process->is_system)
1
0
0
0
Alexandre Julliard : server: Don' t count system processes as users of a desktop.
by Alexandre Julliard
21 Dec '07
21 Dec '07
Module: wine Branch: master Commit: ffbeae78f76f4b6c1ce2d51093473044b9f49522 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ffbeae78f76f4b6c1ce2d5109…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Dec 20 16:43:14 2007 +0100 server: Don't count system processes as users of a desktop. --- server/process.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/server/process.c b/server/process.c index 26b1863..23a4ec0 100644 --- a/server/process.c +++ b/server/process.c @@ -601,7 +601,7 @@ static void process_killed( struct process *process ) assert( list_empty( &process->thread_list )); process->end_time = current_time; - close_process_desktop( process ); + if (!process->is_system) close_process_desktop( process ); handles = process->handles; process->handles = NULL; if (handles) release_object( handles ); @@ -1191,6 +1191,7 @@ DECL_HANDLER(make_process_system) if (!process->is_system) { process->is_system = 1; + close_process_desktop( process ); if (!--user_processes) set_event( user_process_event ); } }
1
0
0
0
Alexandre Julliard : include: Added the mountmgr.h header.
by Alexandre Julliard
21 Dec '07
21 Dec '07
Module: wine Branch: master Commit: d1b356745b1fae791e9977154eaff06b5c639b00 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d1b356745b1fae791e9977154…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Dec 20 16:41:35 2007 +0100 include: Added the mountmgr.h header. --- include/Makefile.in | 1 + include/ddk/mountmgr.h | 125 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 126 insertions(+), 0 deletions(-) diff --git a/include/Makefile.in b/include/Makefile.in index 4300329..733f9bd 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -130,6 +130,7 @@ SRCDIR_INCLUDES = \ ddk/compstui.h \ ddk/hidsdi.h \ ddk/imm.h \ + ddk/mountmgr.h \ ddk/ntddcdvd.h \ ddk/ntddser.h \ ddk/ntddtape.h \ diff --git a/include/ddk/mountmgr.h b/include/ddk/mountmgr.h new file mode 100644 index 0000000..db0f21c --- /dev/null +++ b/include/ddk/mountmgr.h @@ -0,0 +1,125 @@ +/* + * Mount point manager definitions + * + * Copyright 2007 Alexandre Julliard + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#ifndef _MOUNTMGR_ +#define _MOUNTMGR_ + +#define MOUNTMGRCONTROLTYPE ((ULONG)'m') +#define MOUNTDEVCONTROLTYPE ((ULONG)'M') + +#if defined(__GNUC__) +#define MOUNTMGR_DEVICE_NAME (const WCHAR []){'\\','D','e','v','i','c','e','\\','M','o','u','n','t','P','o','i','n','t','M','a','n','a','g','e','r',0} +#define MOUNTMGR_DOS_DEVICE_NAME (const WCHAR []){'\\','\\','.','\\','M','o','u','n','t','P','o','i','n','t','M','a','n','a','g','e','r',0} +#elif defined(_MSC_VER) +#define MOUNTMGR_DEVICE_NAME L"\\Device\\MountPointManager" +#define MOUNTMGR_DOS_DEVICE_NAME L"\\\\.\\MountPointManager" +#else +static const WCHAR MOUNTMGR_DEVICE_NAME[] = {'\\','D','e','v','i','c','e','\\','M','o','u','n','t','P','o','i','n','t','M','a','n','a','g','e','r',0}; +static const WCHAR MOUNTMGR_DOS_DEVICE_NAME[] = {'\\','\\','.','\\','M','o','u','n','t','P','o','i','n','t','M','a','n','a','g','e','r',0}; +#endif + + +#define IOCTL_MOUNTMGR_CREATE_POINT CTL_CODE(MOUNTMGRCONTROLTYPE, 0, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) +#define IOCTL_MOUNTMGR_DELETE_POINTS CTL_CODE(MOUNTMGRCONTROLTYPE, 1, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) +#define IOCTL_MOUNTMGR_QUERY_POINTS CTL_CODE(MOUNTMGRCONTROLTYPE, 2, METHOD_BUFFERED, FILE_ANY_ACCESS) +#define IOCTL_MOUNTMGR_DELETE_POINTS_DBONLY CTL_CODE(MOUNTMGRCONTROLTYPE, 3, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) +#define IOCTL_MOUNTMGR_NEXT_DRIVE_LETTER CTL_CODE(MOUNTMGRCONTROLTYPE, 4, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) +#define IOCTL_MOUNTMGR_AUTO_DL_ASSIGNMENTS CTL_CODE(MOUNTMGRCONTROLTYPE, 5, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) +#define IOCTL_MOUNTMGR_VOLUME_MOUNT_POINT_CREATED CTL_CODE(MOUNTMGRCONTROLTYPE, 6, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) +#define IOCTL_MOUNTMGR_VOLUME_MOUNT_POINT_DELETED CTL_CODE(MOUNTMGRCONTROLTYPE, 7, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) +#define IOCTL_MOUNTMGR_CHANGE_NOTIFY CTL_CODE(MOUNTMGRCONTROLTYPE, 8, METHOD_BUFFERED, FILE_READ_ACCESS) +#define IOCTL_MOUNTMGR_KEEP_LINKS_WHEN_OFFLINE CTL_CODE(MOUNTMGRCONTROLTYPE, 9, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS) +#define IOCTL_MOUNTMGR_CHECK_UNPROCESSED_VOLUMES CTL_CODE(MOUNTMGRCONTROLTYPE, 10, METHOD_BUFFERED, FILE_READ_ACCESS) +#define IOCTL_MOUNTMGR_VOLUME_ARRIVAL_NOTIFICATION CTL_CODE(MOUNTMGRCONTROLTYPE, 11, METHOD_BUFFERED, FILE_READ_ACCESS) + +typedef struct _MOUNTMGR_CREATE_POINT_INPUT +{ + USHORT SymbolicLinkNameOffset; + USHORT SymbolicLinkNameLength; + USHORT DeviceNameOffset; + USHORT DeviceNameLength; +} MOUNTMGR_CREATE_POINT_INPUT, *PMOUNTMGR_CREATE_POINT_INPUT; + +typedef struct _MOUNTMGR_MOUNT_POINT +{ + ULONG SymbolicLinkNameOffset; + USHORT SymbolicLinkNameLength; + ULONG UniqueIdOffset; + USHORT UniqueIdLength; + ULONG DeviceNameOffset; + USHORT DeviceNameLength; +} MOUNTMGR_MOUNT_POINT, *PMOUNTMGR_MOUNT_POINT; + +typedef struct _MOUNTMGR_MOUNT_POINTS +{ + ULONG Size; + ULONG NumberOfMountPoints; + MOUNTMGR_MOUNT_POINT MountPoints[1]; +} MOUNTMGR_MOUNT_POINTS, *PMOUNTMGR_MOUNT_POINTS; + +typedef struct _MOUNTMGR_DRIVE_LETTER_TARGET +{ + USHORT DeviceNameLength; + WCHAR DeviceName[1]; +} MOUNTMGR_DRIVE_LETTER_TARGET, *PMOUNTMGR_DRIVE_LETTER_TARGET; + +typedef struct _MOUNTMGR_DRIVE_LETTER_INFORMATION +{ + BOOLEAN DriveLetterWasAssigned; + UCHAR CurrentDriveLetter; +} MOUNTMGR_DRIVE_LETTER_INFORMATION, *PMOUNTMGR_DRIVE_LETTER_INFORMATION; + +typedef struct _MOUNTMGR_VOLUME_MOUNT_POINT +{ + USHORT SourceVolumeNameOffset; + USHORT SourceVolumeNameLength; + USHORT TargetVolumeNameOffset; + USHORT TargetVolumeNameLength; +} MOUNTMGR_VOLUME_MOUNT_POINT, *PMOUNTMGR_VOLUME_MOUNT_POINT; + +typedef struct _MOUNTMGR_CHANGE_NOTIFY_INFO +{ + ULONG EpicNumber; +} MOUNTMGR_CHANGE_NOTIFY_INFO, *PMOUNTMGR_CHANGE_NOTIFY_INFO; + +typedef struct _MOUNTMGR_TARGET_NAME +{ + USHORT DeviceNameLength; + WCHAR DeviceName[1]; +} MOUNTMGR_TARGET_NAME, *PMOUNTMGR_TARGET_NAME; + +#define MOUNTMGR_IS_DRIVE_LETTER(s) \ + ((s)->Length == 28 && \ + (s)->Buffer[0] == '\\' && (s)->Buffer[1] == 'D' && (s)->Buffer[2] == 'o' && \ + (s)->Buffer[3] == 's' && (s)->Buffer[4] == 'D' && (s)->Buffer[5] == 'e' && \ + (s)->Buffer[6] == 'v' && (s)->Buffer[7] == 'i' && (s)->Buffer[8] == 'c' && \ + (s)->Buffer[9] == 'e' && (s)->Buffer[10] == 's' && (s)->Buffer[11] == '\\' && \ + (s)->Buffer[12] >= 'A' && (s)->Buffer[12] <= 'Z' && (s)->Buffer[13] == ':') + +#define MOUNTMGR_IS_VOLUME_NAME(s) \ + (((s)->Length == 96 || ((s)->Length == 98 && (s)->Buffer[48] == '\\')) && \ + (s)->Buffer[0] == '\\' && ((s)->Buffer[1] == '?' || (s)->Buffer[1] == '\\') && \ + (s)->Buffer[2] == '?' && (s)->Buffer[3] == '\\' && (s)->Buffer[4] == 'V' && \ + (s)->Buffer[5] == 'o' && (s)->Buffer[6] == 'l' && (s)->Buffer[7] == 'u' && \ + (s)->Buffer[8] == 'm' && (s)->Buffer[9] == 'e' && (s)->Buffer[10] == '{' && \ + (s)->Buffer[19] == '-' && (s)->Buffer[24] == '-' && (s)->Buffer[29] == '-' && \ + (s)->Buffer[34] == '-' && (s)->Buffer[47] == '}') + +#endif /* _MOUNTMGR_ */
1
0
0
0
← Newer
1
...
18
19
20
21
22
23
24
...
83
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
Results per page:
10
25
50
100
200