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 2009
----- 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
1233 discussions
Start a n
N
ew thread
Alexandre Julliard : user32: Pre-allocate the window procedure for the combobox class.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: 05cf0ff29f7c178a34c41790a26bd0e48dc12633 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=05cf0ff29f7c178a34c41790a…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Dec 17 12:57:22 2009 +0100 user32: Pre-allocate the window procedure for the combobox class. --- dlls/user32/combo.c | 30 ++++-------------------------- dlls/user32/controls.h | 1 + dlls/user32/winproc.c | 13 +++++++++++++ 3 files changed, 18 insertions(+), 26 deletions(-) diff --git a/dlls/user32/combo.c b/dlls/user32/combo.c index c405c1a..948c6a7 100644 --- a/dlls/user32/combo.c +++ b/dlls/user32/combo.c @@ -86,9 +86,6 @@ static UINT CBitHeight, CBitWidth; #define COMBO_EDITBUTTONSPACE() 0 #define EDIT_CONTROL_PADDING() 1 -static LRESULT WINAPI ComboWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); -static LRESULT WINAPI ComboWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); - /********************************************************************* * combo class descriptor */ @@ -97,8 +94,8 @@ const struct builtin_class_descr COMBO_builtin_class = { comboboxW, /* name */ CS_PARENTDC | CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW, /* style */ - ComboWndProcA, /* procA */ - ComboWndProcW, /* procW */ + NULL, /* procA */ + BUILTIN_WINPROC(WINPROC_COMBO), /* procW */ sizeof(HEADCOMBO *), /* extra */ IDC_ARROW, /* cursor */ 0 /* brush */ @@ -1839,6 +1836,8 @@ LRESULT ComboWndProc_common( HWND hwnd, UINT message, WPARAM wParam, LPARAM lPar TRACE("[%p]: msg %s wp %08lx lp %08lx\n", hwnd, SPY_GetMsgName(message, hwnd), wParam, lParam ); + if (!IsWindow(hwnd)) return 0; + if( lphc || message == WM_NCCREATE ) switch(message) { @@ -2219,27 +2218,6 @@ LRESULT ComboWndProc_common( HWND hwnd, UINT message, WPARAM wParam, LPARAM lPar DefWindowProcA(hwnd, message, wParam, lParam); } -/*********************************************************************** - * ComboWndProcA - * - * This is just a wrapper for the real ComboWndProc which locks/unlocks - * window structs. - */ -static LRESULT WINAPI ComboWndProcA( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam ) -{ - if (!IsWindow(hwnd)) return 0; - return wow_handlers.combo_proc( hwnd, message, wParam, lParam, FALSE ); -} - -/*********************************************************************** - * ComboWndProcW - */ -static LRESULT WINAPI ComboWndProcW( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam ) -{ - if (!IsWindow(hwnd)) return 0; - return wow_handlers.combo_proc( hwnd, message, wParam, lParam, TRUE ); -} - /************************************************************************* * GetComboBoxInfo (USER32.@) */ diff --git a/dlls/user32/controls.h b/dlls/user32/controls.h index 501520f..76c714c 100644 --- a/dlls/user32/controls.h +++ b/dlls/user32/controls.h @@ -34,6 +34,7 @@ enum builtin_winprocs { WINPROC_BUTTON = 0, + WINPROC_COMBO, NB_BUILTIN_WINPROCS }; diff --git a/dlls/user32/winproc.c b/dlls/user32/winproc.c index dd3e234..32b94b4 100644 --- a/dlls/user32/winproc.c +++ b/dlls/user32/winproc.c @@ -53,10 +53,13 @@ WNDPROC EDIT_winproc_handle = 0; static LRESULT WINAPI ButtonWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); static LRESULT WINAPI ButtonWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); +static LRESULT WINAPI ComboWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); +static LRESULT WINAPI ComboWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); static WINDOWPROC winproc_array[MAX_WINPROCS] = { { ButtonWndProcA, ButtonWndProcW }, /* WINPROC_BUTTON */ + { ComboWndProcA, ComboWndProcW }, /* WINPROC_COMBO */ }; static UINT builtin_used = NB_BUILTIN_WINPROCS; @@ -1052,6 +1055,16 @@ static LRESULT WINAPI ButtonWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM return wow_handlers.button_proc( hwnd, msg, wParam, lParam, TRUE ); } +static LRESULT WINAPI ComboWndProcA( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam ) +{ + return wow_handlers.combo_proc( hwnd, message, wParam, lParam, FALSE ); +} + +static LRESULT WINAPI ComboWndProcW( HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam ) +{ + return wow_handlers.combo_proc( hwnd, message, wParam, lParam, TRUE ); +} + /********************************************************************** * UserRegisterWowHandlers (USER32.@)
1
0
0
0
Alexandre Julliard : user32: Pre-allocate the window procedure for the button class.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: 87f83f8618105eaa5fcd9d03399118c106707a74 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=87f83f8618105eaa5fcd9d033…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Dec 17 12:56:50 2009 +0100 user32: Pre-allocate the window procedure for the button class. --- dlls/user32/button.c | 28 ++++------------------------ dlls/user32/controls.h | 9 +++++++++ dlls/user32/winproc.c | 27 ++++++++++++++++++++++++--- 3 files changed, 37 insertions(+), 27 deletions(-) diff --git a/dlls/user32/button.c b/dlls/user32/button.c index 42163eb..6e68785 100644 --- a/dlls/user32/button.c +++ b/dlls/user32/button.c @@ -113,8 +113,6 @@ static void GB_Paint( HWND hwnd, HDC hDC, UINT action ); static void UB_Paint( HWND hwnd, HDC hDC, UINT action ); static void OB_Paint( HWND hwnd, HDC hDC, UINT action ); static void BUTTON_CheckAutoRadioButton( HWND hwnd ); -static LRESULT WINAPI ButtonWndProcA( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ); -static LRESULT WINAPI ButtonWndProcW( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ); #define MAX_BTN_TYPE 12 @@ -164,8 +162,8 @@ const struct builtin_class_descr BUTTON_builtin_class = { buttonW, /* name */ CS_DBLCLKS | CS_VREDRAW | CS_HREDRAW | CS_PARENTDC, /* style */ - ButtonWndProcA, /* procA */ - ButtonWndProcW, /* procW */ + NULL, /* procA */ + BUILTIN_WINPROC(WINPROC_BUTTON), /* procW */ NB_EXTRA_BYTES, /* extra */ IDC_ARROW, /* cursor */ 0 /* brush */ @@ -238,6 +236,8 @@ LRESULT ButtonWndProc_common(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LONG state; HANDLE oldHbitmap; + if (!IsWindow( hWnd )) return 0; + pt.x = (short)LOWORD(lParam); pt.y = (short)HIWORD(lParam); @@ -545,26 +545,6 @@ LRESULT ButtonWndProc_common(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, return 0; } -/*********************************************************************** - * ButtonWndProcW - */ -static LRESULT WINAPI ButtonWndProcW( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ) -{ - if (!IsWindow( hWnd )) return 0; - return wow_handlers.button_proc( hWnd, uMsg, wParam, lParam, TRUE ); -} - - -/*********************************************************************** - * ButtonWndProcA - */ -static LRESULT WINAPI ButtonWndProcA( HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam ) -{ - if (!IsWindow( hWnd )) return 0; - return wow_handlers.button_proc( hWnd, uMsg, wParam, lParam, FALSE ); -} - - /********************************************************************** * Convert button styles to flags used by DrawText. */ diff --git a/dlls/user32/controls.h b/dlls/user32/controls.h index 45dd2d0..501520f 100644 --- a/dlls/user32/controls.h +++ b/dlls/user32/controls.h @@ -31,6 +31,15 @@ #define WINSWITCH_CLASS_ATOM MAKEINTATOM(32771) /* WinSwitch */ #define ICONTITLE_CLASS_ATOM MAKEINTATOM(32772) /* IconTitle */ +enum builtin_winprocs +{ + WINPROC_BUTTON = 0, + NB_BUILTIN_WINPROCS +}; + +#define WINPROC_HANDLE (~0u >> 16) +#define BUILTIN_WINPROC(index) ((WNDPROC)(ULONG_PTR)((index) | (WINPROC_HANDLE << 16))) + /* Built-in class descriptor */ struct builtin_class_descr { diff --git a/dlls/user32/winproc.c b/dlls/user32/winproc.c index 0bde530..dd3e234 100644 --- a/dlls/user32/winproc.c +++ b/dlls/user32/winproc.c @@ -44,7 +44,6 @@ typedef struct tagWINDOWPROC WNDPROC procW; /* Unicode window proc */ } WINDOWPROC; -#define WINPROC_HANDLE (~0u >> 16) #define MAX_WINPROCS 4096 #define BUILTIN_WINPROCS 9 /* first BUILTIN_WINPROCS entries are reserved for builtin procs */ #define MAX_WINPROC_RECURSION 64 @@ -52,8 +51,15 @@ typedef struct tagWINDOWPROC WNDPROC EDIT_winproc_handle = 0; -static WINDOWPROC winproc_array[MAX_WINPROCS]; -static UINT builtin_used; +static LRESULT WINAPI ButtonWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); +static LRESULT WINAPI ButtonWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ); + +static WINDOWPROC winproc_array[MAX_WINPROCS] = +{ + { ButtonWndProcA, ButtonWndProcW }, /* WINPROC_BUTTON */ +}; + +static UINT builtin_used = NB_BUILTIN_WINPROCS; static UINT winproc_used = BUILTIN_WINPROCS; static CRITICAL_SECTION winproc_cs; @@ -1032,6 +1038,21 @@ INT_PTR WINPROC_CallDlgProcW( DLGPROC func, HWND hwnd, UINT msg, WPARAM wParam, } +/*********************************************************************** + * Window procedures for builtin classes + */ + +static LRESULT WINAPI ButtonWndProcA( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ) +{ + return wow_handlers.button_proc( hwnd, msg, wParam, lParam, FALSE ); +} + +static LRESULT WINAPI ButtonWndProcW( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam ) +{ + return wow_handlers.button_proc( hwnd, msg, wParam, lParam, TRUE ); +} + + /********************************************************************** * UserRegisterWowHandlers (USER32.@) *
1
0
0
0
Huw Davies : shell32: Fix a memory leak.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: b71173f7ac0493fac4abe3f237b6cfb22b25fcd7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b71173f7ac0493fac4abe3f23…
Author: Huw Davies <huw(a)codeweavers.com> Date: Thu Dec 17 10:12:04 2009 +0000 shell32: Fix a memory leak. Found by Valgrind. --- dlls/shell32/shelllink.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dlls/shell32/shelllink.c b/dlls/shell32/shelllink.c index 3b16170..6dd62a7 100644 --- a/dlls/shell32/shelllink.c +++ b/dlls/shell32/shelllink.c @@ -2213,7 +2213,10 @@ static HRESULT WINAPI IShellLinkW_fnSetPath(IShellLinkW * iface, LPCWSTR pszFile /* any other quote marks are invalid */ if (strchrW(pszFile, '"')) + { + HeapFree(GetProcessHeap(), 0, unquoted); return S_FALSE; + } HeapFree(GetProcessHeap(), 0, This->sPath); This->sPath = NULL; @@ -2241,7 +2244,10 @@ static HRESULT WINAPI IShellLinkW_fnSetPath(IShellLinkW * iface, LPCWSTR pszFile This->sPath = HeapAlloc( GetProcessHeap(), 0, (lstrlenW( buffer )+1) * sizeof (WCHAR) ); if (!This->sPath) + { + HeapFree(GetProcessHeap(), 0, unquoted); return E_OUTOFMEMORY; + } lstrcpyW(This->sPath, buffer); }
1
0
0
0
Lei Zhang : secur32: Fix memory leak in SECUR32_addPackages.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: c89211336b9e4309d18819f241e0f77ff882a56e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c89211336b9e4309d18819f24…
Author: Lei Zhang <thestig(a)google.com> Date: Thu Dec 17 01:53:38 2009 -0800 secur32: Fix memory leak in SECUR32_addPackages. --- dlls/secur32/secur32.c | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/dlls/secur32/secur32.c b/dlls/secur32/secur32.c index 4171778..f626617 100644 --- a/dlls/secur32/secur32.c +++ b/dlls/secur32/secur32.c @@ -666,9 +666,6 @@ SecurePackage *SECUR32_findPackageA(PCSTR packageName) static void SECUR32_freeProviders(void) { - SecurePackage *package; - SecureProvider *provider; - TRACE("\n"); EnterCriticalSection(&cs); @@ -676,10 +673,13 @@ static void SECUR32_freeProviders(void) if (packageTable) { - LIST_FOR_EACH_ENTRY(package, &packageTable->table, SecurePackage, entry) + SecurePackage *package, *package_next; + LIST_FOR_EACH_ENTRY_SAFE(package, package_next, &packageTable->table, + SecurePackage, entry) { HeapFree(GetProcessHeap(), 0, package->infoW.Name); HeapFree(GetProcessHeap(), 0, package->infoW.Comment); + HeapFree(GetProcessHeap(), 0, package); } HeapFree(GetProcessHeap(), 0, packageTable); @@ -688,11 +688,14 @@ static void SECUR32_freeProviders(void) if (providerTable) { - LIST_FOR_EACH_ENTRY(provider, &providerTable->table, SecureProvider, entry) + SecureProvider *provider, *provider_next; + LIST_FOR_EACH_ENTRY_SAFE(provider, provider_next, &providerTable->table, + SecureProvider, entry) { HeapFree(GetProcessHeap(), 0, provider->moduleName); if (provider->lib) FreeLibrary(provider->lib); + HeapFree(GetProcessHeap(), 0, provider); } HeapFree(GetProcessHeap(), 0, providerTable);
1
0
0
0
James Hawkins : msi: Initialize type. If the value did not exist, type was uninitialized and passed to RegSetValueExW.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: 26d541b2a9790a85095bfa6aab287cf25b8e7455 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=26d541b2a9790a85095bfa6aa…
Author: James Hawkins <truiken(a)gmail.com> Date: Wed Dec 16 19:05:27 2009 -0800 msi: Initialize type. If the value did not exist, type was uninitialized and passed to RegSetValueExW. --- dlls/msi/action.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index a5c916e..7904770 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -5008,6 +5008,7 @@ static UINT ITERATE_WriteEnvironmentString( MSIRECORD *rec, LPVOID param ) FIXME("Not removing environment variable on uninstall!\n"); size = 0; + type = REG_SZ; res = RegQueryValueExW(env, name, NULL, &type, NULL, &size); if ((res != ERROR_SUCCESS && res != ERROR_FILE_NOT_FOUND) || (res == ERROR_SUCCESS && type != REG_SZ && type != REG_EXPAND_SZ))
1
0
0
0
James Hawkins : kernel32: Free the resource data if a matching resource exists and we choose not to overwrite the existing resource .
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: 9b2af10f020fb17a5707646a62185e75b8bf82d2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=9b2af10f020fb17a5707646a6…
Author: James Hawkins <truiken(a)gmail.com> Date: Wed Dec 16 19:05:18 2009 -0800 kernel32: Free the resource data if a matching resource exists and we choose not to overwrite the existing resource. --- dlls/kernel32/resource.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/kernel32/resource.c b/dlls/kernel32/resource.c index d405b95..76d2741 100644 --- a/dlls/kernel32/resource.c +++ b/dlls/kernel32/resource.c @@ -810,7 +810,7 @@ static BOOL update_add_resource( QUEUEDUPDATES *updates, LPCWSTR Type, LPCWSTR N if (existing) { if (!overwrite_existing) - return TRUE; + return FALSE; list_remove( &existing->entry ); HeapFree( GetProcessHeap(), 0, existing ); } @@ -1076,7 +1076,10 @@ static BOOL enumerate_mapped_resources( QUEUEDUPDATES *updates, resdata = allocate_resource_data( Lang, data->CodePage, p, data->Size, FALSE ); if (resdata) - update_add_resource( updates, Type, Name, resdata, FALSE ); + { + if (!update_add_resource( updates, Type, Name, resdata, FALSE )) + HeapFree( GetProcessHeap(), 0, resdata ); + } } res_free_str( Name ); }
1
0
0
0
James Hawkins : msi: Move MSITRANSFORM and MSISTREAM and associated methods to the dabatase implementation file as they are database objects /methods.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: 6b403d1a31e1719fc2d0cd991aaefcdb1dc5f2f3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6b403d1a31e1719fc2d0cd991…
Author: James Hawkins <truiken(a)gmail.com> Date: Wed Dec 16 19:05:12 2009 -0800 msi: Move MSITRANSFORM and MSISTREAM and associated methods to the dabatase implementation file as they are database objects/methods. --- dlls/msi/database.c | 210 ++++++++++++++++++++++++++++++++++++++++++++++++++- dlls/msi/msipriv.h | 5 +- dlls/msi/table.c | 208 +-------------------------------------------------- 3 files changed, 211 insertions(+), 212 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=6b403d1a31e1719fc2d0c…
1
0
0
0
James Hawkins : msi: Free the cached streams when closing the database.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: a2f5d0e270223f1e2cc2fd4ecceb1cfb94256f8d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a2f5d0e270223f1e2cc2fd4ec…
Author: James Hawkins <truiken(a)gmail.com> Date: Wed Dec 16 19:05:05 2009 -0800 msi: Free the cached streams when closing the database. --- dlls/msi/database.c | 1 + dlls/msi/msipriv.h | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/msi/database.c b/dlls/msi/database.c index b485b21..32c0e8b 100644 --- a/dlls/msi/database.c +++ b/dlls/msi/database.c @@ -57,6 +57,7 @@ static VOID MSI_CloseDatabase( MSIOBJECTHDR *arg ) msi_free(db->path); free_cached_tables( db ); + msi_free_streams( db ); msi_free_transforms( db ); msi_destroy_stringtable( db->strings ); IStorage_Release( db->storage ); diff --git a/dlls/msi/msipriv.h b/dlls/msi/msipriv.h index 2f8a38c..3b2733b 100644 --- a/dlls/msi/msipriv.h +++ b/dlls/msi/msipriv.h @@ -650,6 +650,7 @@ extern void msiobj_unlock(MSIOBJECTHDR *); extern void msi_free_handle_table(void); extern void free_cached_tables( MSIDATABASE *db ); +extern void msi_free_streams( MSIDATABASE *db ); extern void msi_free_transforms( MSIDATABASE *db ); extern UINT MSI_CommitTables( MSIDATABASE *db );
1
0
0
0
Jacek Caban : wininet: Make sure to not read over chunk end in read_gzip_data.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: 78b2cedaa616a92ef8ac542ffd646280ac2bcf77 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=78b2cedaa616a92ef8ac542ff…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Thu Dec 17 00:02:47 2009 +0100 wininet: Make sure to not read over chunk end in read_gzip_data. --- dlls/wininet/http.c | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c index 5dfbe6a..6786380 100644 --- a/dlls/wininet/http.c +++ b/dlls/wininet/http.c @@ -1952,6 +1952,7 @@ static DWORD read_gzip_data(http_request_t *req, BYTE *buf, int size, BOOL sync, #ifdef HAVE_ZLIB z_stream *zstream = &req->gzip_stream->zstream; + DWORD buf_avail; int zres; while(read < size && !req->gzip_stream->end_of_data) { @@ -1960,14 +1961,16 @@ static DWORD read_gzip_data(http_request_t *req, BYTE *buf, int size, BOOL sync, break; } + buf_avail = req->dwContentLength == ~0 ? req->read_size : min(req->read_size, req->dwContentLength-req->dwContentRead); + zstream->next_in = req->read_buf+req->read_pos; - zstream->avail_in = req->read_size; + zstream->avail_in = buf_avail; zstream->next_out = buf+read; zstream->avail_out = size-read; zres = inflate(zstream, Z_FULL_FLUSH); read = size - zstream->avail_out; - req->dwContentRead += req->read_size-zstream->avail_in; - remove_data(req, req->read_size-zstream->avail_in); + req->dwContentRead += buf_avail-zstream->avail_in; + remove_data(req, buf_avail-zstream->avail_in); if(zres == Z_STREAM_END) { TRACE("end of data\n"); req->gzip_stream->end_of_data = TRUE;
1
0
0
0
Roderick Colenbrander : wined3d: Fix a bug in BtlFast which was uncovered by the 32-bit dibsection support.
by Alexandre Julliard
17 Dec '09
17 Dec '09
Module: wine Branch: master Commit: 6d8c4572efae3b7e8e64100504c10270b2168079 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6d8c4572efae3b7e8e6410050…
Author: Roderick Colenbrander <thunderbird2k(a)gmail.com> Date: Sat Nov 14 16:30:25 2009 +0100 wined3d: Fix a bug in BtlFast which was uncovered by the 32-bit dibsection support. --- dlls/ddraw/tests/dsurface.c | 34 ++++++++++++++++++++++++++++++++++ dlls/wined3d/surface_base.c | 10 +++++++++- 2 files changed, 43 insertions(+), 1 deletions(-) diff --git a/dlls/ddraw/tests/dsurface.c b/dlls/ddraw/tests/dsurface.c index ab0408b..d53d6a0 100644 --- a/dlls/ddraw/tests/dsurface.c +++ b/dlls/ddraw/tests/dsurface.c @@ -304,6 +304,40 @@ static void SrcColorKey32BlitTest(void) rc = IDirectDrawSurface_Unlock(lpDst, NULL); ok(rc==DD_OK,"Unlock returned: %x\n",rc); + /* Below we repeat the same test as above but now using BltFast instead of Blt. Before + * we can carry out the test we need to restore the color of the destination surface. + */ + rc = IDirectDrawSurface_Lock(lpDst, NULL, &ddsd2, DDLOCK_WAIT, NULL); + ok(rc==DD_OK,"Lock returned: %x\n",rc); + lpData = ddsd2.lpSurface; + lpData[0] = 0xCCCCCCCC; + lpData[1] = 0xCCCCCCCC; + lpData[2] = 0xCCCCCCCC; + lpData[3] = 0xCCCCCCCC; + rc = IDirectDrawSurface_Unlock(lpDst, NULL); + ok(rc==DD_OK,"Unlock returned: %x\n",rc); + + IDirectDrawSurface_BltFast(lpDst, 0, 0, lpSrc, NULL, DDBLTFAST_SRCCOLORKEY); + + rc = IDirectDrawSurface_Lock(lpDst, NULL, &ddsd2, DDLOCK_WAIT, NULL); + ok(rc==DD_OK,"Lock returned: %x\n",rc); + ok((ddsd2.dwFlags & DDSD_LPSURFACE) == 0, "Surface desc has LPSURFACE Flags set\n"); + lpData = ddsd2.lpSurface; + /* Different behavior on some drivers / windows versions. Some versions ignore the X channel when + * color keying, but copy it to the destination surface. Others apply it for color keying, but + * do not copy it into the destination surface. + */ + if(lpData[0]==0x00010203) { + trace("X channel was not copied into the destination surface\n"); + ok((lpData[0]==0x00010203)&&(lpData[1]==0x00010203)&&(lpData[2]==0x00FF00FF)&&(lpData[3]==0xCCCCCCCC), + "Destination data after blitting is not correct\n"); + } else { + ok((lpData[0]==0x77010203)&&(lpData[1]==0x00010203)&&(lpData[2]==0xCCCCCCCC)&&(lpData[3]==0xCCCCCCCC), + "Destination data after blitting is not correct\n"); + } + rc = IDirectDrawSurface_Unlock(lpDst, NULL); + ok(rc==DD_OK,"Unlock returned: %x\n",rc); + /* Also test SetColorKey */ IDirectDrawSurface_GetColorKey(lpSrc, DDCKEY_SRCBLT, &DDColorKey); ok(DDColorKey.dwColorSpaceLowValue == 0xFF00FF && DDColorKey.dwColorSpaceHighValue == 0xFF00FF, diff --git a/dlls/wined3d/surface_base.c b/dlls/wined3d/surface_base.c index c737f99..dc29ad2 100644 --- a/dlls/wined3d/surface_base.c +++ b/dlls/wined3d/surface_base.c @@ -1695,6 +1695,14 @@ HRESULT WINAPI IWineD3DBaseSurfaceImpl_BltFast(IWineD3DSurface *iface, DWORD dst if (trans & (WINEDDBLTFAST_SRCCOLORKEY | WINEDDBLTFAST_DESTCOLORKEY)) { DWORD keylow, keyhigh; + DWORD mask = Src->resource.format_desc->red_mask | + Src->resource.format_desc->green_mask | + Src->resource.format_desc->blue_mask; + + /* For some 8-bit formats like L8 and P8 color masks don't make sense */ + if(!mask && bpp==1) + mask = 0xff; + TRACE("Color keyed copy\n"); if (trans & WINEDDBLTFAST_SRCCOLORKEY) { @@ -1716,7 +1724,7 @@ HRESULT WINAPI IWineD3DBaseSurfaceImpl_BltFast(IWineD3DSurface *iface, DWORD dst for (y = 0; y < h; y++) { \ for (x = 0; x < w; x++) { \ tmp = s[x]; \ - if (tmp < keylow || tmp > keyhigh) d[x] = tmp; \ + if ((tmp & mask) < keylow || (tmp & mask) > keyhigh) d[x] = tmp; \ } \ s = (const type *)((const BYTE *)s + slock.Pitch); \ d = (type *)((BYTE *)d + dlock.Pitch); \
1
0
0
0
← Newer
1
...
42
43
44
45
46
47
48
...
124
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
Results per page:
10
25
50
100
200