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
September 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
7 participants
787 discussions
Start a n
N
ew thread
Mikolaj Zalewski : advapi32: Fix a test.
by Alexandre Julliard
25 Sep '07
25 Sep '07
Module: wine Branch: master Commit: 1122dc130a447c190fc02508432772ab75db3bad URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1122dc130a447c190fc025084…
Author: Mikolaj Zalewski <mikolajz(a)google.com> Date: Mon Sep 24 16:56:32 2007 -0700 advapi32: Fix a test. --- dlls/advapi32/tests/service.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/advapi32/tests/service.c b/dlls/advapi32/tests/service.c index 7aea906..bfb535d 100644 --- a/dlls/advapi32/tests/service.c +++ b/dlls/advapi32/tests/service.c @@ -727,7 +727,7 @@ static void test_sequence(void) static const CHAR servicename [] = "Winetest"; static const CHAR displayname [] = "Winetest dummy service"; static const CHAR pathname [] = "we_dont_care.exe"; - static const CHAR dependencies[] = "Master1\0Master2\0+MasterGroup1\0\0"; + static const CHAR dependencies[] = "Master1\0Master2\0+MasterGroup1\0"; static const CHAR password [] = ""; static const CHAR empty [] = ""; static const CHAR localsystem [] = "LocalSystem";
1
0
0
0
Michael Stefaniuc : ole32: Free memory on error path (found by Smatch).
by Alexandre Julliard
25 Sep '07
25 Sep '07
Module: wine Branch: master Commit: dbfa8eedf79cd7fa54917a4ad6f5a4520b97c87d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=dbfa8eedf79cd7fa54917a4ad…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Tue Sep 25 01:15:07 2007 +0200 ole32: Free memory on error path (found by Smatch). --- dlls/ole32/oleproxy.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/ole32/oleproxy.c b/dlls/ole32/oleproxy.c index e807941..42dc8d1 100644 --- a/dlls/ole32/oleproxy.c +++ b/dlls/ole32/oleproxy.c @@ -402,9 +402,10 @@ static HRESULT WINAPI CFProxy_CreateInstance( hGlobal = GlobalAlloc(GMEM_MOVEABLE|GMEM_NODISCARD|GMEM_SHARE,msg.cbBuffer); memcpy(GlobalLock(hGlobal),msg.Buffer,msg.cbBuffer); hres = CreateStreamOnHGlobal(hGlobal,TRUE,&pStream); - if (hres) { + if (hres != S_OK) { FIXME("CreateStreamOnHGlobal failed with %x\n",hres); IRpcChannelBuffer_FreeBuffer(This->chanbuf,&msg); + GlobalFree(hGlobal); return hres; } hres = IStream_Read(pStream, ppv, sizeof(*ppv), NULL);
1
0
0
0
Andrew Talbot : gdi32: Fix a memory leak.
by Alexandre Julliard
25 Sep '07
25 Sep '07
Module: wine Branch: master Commit: ce0e1706fe8aada6be3444b6de3457cb4be1dbe2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ce0e1706fe8aada6be3444b6d…
Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Mon Sep 24 21:13:57 2007 +0100 gdi32: Fix a memory leak. --- dlls/gdi32/painting.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/gdi32/painting.c b/dlls/gdi32/painting.c index 72d8183..77d05c2 100644 --- a/dlls/gdi32/painting.c +++ b/dlls/gdi32/painting.c @@ -970,7 +970,7 @@ BOOL WINAPI PolyDraw(HDC hdc, const POINT *lppt, const BYTE *lpbTypes, Polyline(hdc, line_pts, num_pts); MoveToEx(hdc, line_pts[num_pts - 1].x, line_pts[num_pts - 1].y, NULL); - + HeapFree(GetProcessHeap(), 0, line_pts); result = TRUE; }
1
0
0
0
Alexandre Julliard : gdi32: Don' t hold the GDI lock while calling the driver printer functions.
by Alexandre Julliard
25 Sep '07
25 Sep '07
Module: wine Branch: master Commit: 58c6bab9c95c939774be59f9bc0b18b263deea8c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=58c6bab9c95c939774be59f9b…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Sep 24 18:23:42 2007 +0200 gdi32: Don't hold the GDI lock while calling the driver printer functions. --- dlls/gdi32/driver.c | 20 ++++++++---------- dlls/gdi32/printdrv.c | 50 +++++++++++++++++++++--------------------------- 2 files changed, 31 insertions(+), 39 deletions(-) diff --git a/dlls/gdi32/driver.c b/dlls/gdi32/driver.c index 465adc1..8dc14fe 100644 --- a/dlls/gdi32/driver.c +++ b/dlls/gdi32/driver.c @@ -497,7 +497,6 @@ INT WINAPI GDI_CallExtDeviceMode16( HWND hwnd, HDC hdc; DC *dc; INT ret = -1; - INT (*pExtDeviceMode)(LPSTR,HWND,LPDEVMODEA,LPSTR,LPSTR,LPDEVMODEA,LPSTR,DWORD); TRACE("(%p, %p, %s, %s, %p, %s, %d)\n", hwnd, lpdmOutput, lpszDevice, lpszPort, lpdmInput, lpszProfile, fwMode ); @@ -511,13 +510,12 @@ INT WINAPI GDI_CallExtDeviceMode16( HWND hwnd, if (!(hdc = CreateICA( buf, lpszDevice, lpszPort, NULL ))) return -1; - if ((dc = DC_GetDCPtr( hdc ))) + if ((dc = get_dc_ptr( hdc ))) { - pExtDeviceMode = dc->funcs->pExtDeviceMode; - DC_ReleaseDCPtr( dc ); - if (pExtDeviceMode) - ret = pExtDeviceMode(buf, hwnd, lpdmOutput, lpszDevice, lpszPort, - lpdmInput, lpszProfile, fwMode); + if (dc->funcs->pExtDeviceMode) + ret = dc->funcs->pExtDeviceMode( buf, hwnd, lpdmOutput, lpszDevice, lpszPort, + lpdmInput, lpszProfile, fwMode ); + release_dc_ptr( dc ); } DeleteDC( hdc ); return ret; @@ -566,12 +564,12 @@ DWORD WINAPI GDI_CallDeviceCapabilities16( LPCSTR lpszDevice, LPCSTR lpszPort, if (!(hdc = CreateICA( buf, lpszDevice, lpszPort, NULL ))) return -1; - if ((dc = DC_GetDCPtr( hdc ))) + if ((dc = get_dc_ptr( hdc ))) { if (dc->funcs->pDeviceCapabilities) ret = dc->funcs->pDeviceCapabilities( buf, lpszDevice, lpszPort, fwCapability, lpszOutput, lpdm ); - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); } DeleteDC( hdc ); return ret; @@ -695,12 +693,12 @@ INT WINAPI ExtEscape( HDC hdc, INT nEscape, INT cbInput, LPCSTR lpszInData, INT cbOutput, LPSTR lpszOutData ) { INT ret = 0; - DC * dc = DC_GetDCPtr( hdc ); + DC * dc = get_dc_ptr( hdc ); if (dc) { if (dc->funcs->pExtEscape) ret = dc->funcs->pExtEscape( dc->physDev, nEscape, cbInput, lpszInData, cbOutput, lpszOutData ); - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); } return ret; } diff --git a/dlls/gdi32/printdrv.c b/dlls/gdi32/printdrv.c index 9444536..bdd754f 100644 --- a/dlls/gdi32/printdrv.c +++ b/dlls/gdi32/printdrv.c @@ -71,7 +71,7 @@ static const char Printers[] = "System\\CurrentControlSet\\Control\\Pri INT WINAPI StartDocW(HDC hdc, const DOCINFOW* doc) { INT ret = 0; - DC *dc = DC_GetDCPtr( hdc ); + DC *dc = get_dc_ptr( hdc ); TRACE("DocName = %s Output = %s Datatype = %s\n", debugstr_w(doc->lpszDocName), debugstr_w(doc->lpszOutput), @@ -80,7 +80,7 @@ INT WINAPI StartDocW(HDC hdc, const DOCINFOW* doc) if(!dc) return SP_ERROR; if (dc->funcs->pStartDoc) ret = dc->funcs->pStartDoc( dc->physDev, doc ); - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; } @@ -136,11 +136,11 @@ INT WINAPI StartDocA(HDC hdc, const DOCINFOA* doc) INT WINAPI EndDoc(HDC hdc) { INT ret = 0; - DC *dc = DC_GetDCPtr( hdc ); + DC *dc = get_dc_ptr( hdc ); if(!dc) return SP_ERROR; if (dc->funcs->pEndDoc) ret = dc->funcs->pEndDoc( dc->physDev ); - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; } @@ -152,14 +152,14 @@ INT WINAPI EndDoc(HDC hdc) INT WINAPI StartPage(HDC hdc) { INT ret = 1; - DC *dc = DC_GetDCPtr( hdc ); + DC *dc = get_dc_ptr( hdc ); if(!dc) return SP_ERROR; if(dc->funcs->pStartPage) ret = dc->funcs->pStartPage( dc->physDev ); else FIXME("stub\n"); - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; } @@ -170,19 +170,17 @@ INT WINAPI StartPage(HDC hdc) */ INT WINAPI EndPage(HDC hdc) { - ABORTPROC abort_proc; INT ret = 0; - DC *dc = DC_GetDCPtr( hdc ); + DC *dc = get_dc_ptr( hdc ); if(!dc) return SP_ERROR; if (dc->funcs->pEndPage) ret = dc->funcs->pEndPage( dc->physDev ); - abort_proc = dc->pAbortProc; - DC_ReleaseDCPtr( dc ); - if (abort_proc && !abort_proc( hdc, 0 )) + if (dc->pAbortProc && !dc->pAbortProc( hdc, 0 )) { EndDoc( hdc ); ret = 0; } + release_dc_ptr( dc ); return ret; } @@ -193,11 +191,11 @@ INT WINAPI EndPage(HDC hdc) INT WINAPI AbortDoc(HDC hdc) { INT ret = 0; - DC *dc = DC_GetDCPtr( hdc ); + DC *dc = get_dc_ptr( hdc ); if(!dc) return SP_ERROR; if (dc->funcs->pAbortDoc) ret = dc->funcs->pAbortDoc( dc->physDev ); - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; } @@ -214,19 +212,14 @@ BOOL16 WINAPI QueryAbort16(HDC16 hdc16, INT16 reserved) { BOOL ret = TRUE; HDC hdc = HDC_32( hdc16 ); - DC *dc = DC_GetDCPtr( hdc ); - ABORTPROC abproc; + DC *dc = get_dc_ptr( hdc ); if(!dc) { ERR("Invalid hdc %p\n", hdc); return FALSE; } - - abproc = dc->pAbortProc; - DC_ReleaseDCPtr( dc ); - - if (abproc) - ret = abproc(hdc, 0); + if (dc->pAbortProc) ret = dc->pAbortProc(hdc, 0); + release_dc_ptr( dc ); return ret; } @@ -237,11 +230,11 @@ BOOL16 WINAPI QueryAbort16(HDC16 hdc16, INT16 reserved) static BOOL CALLBACK call_abort_proc16( HDC hdc, INT code ) { ABORTPROC16 proc16; - DC *dc = DC_GetDCPtr( hdc ); + DC *dc = get_dc_ptr( hdc ); if (!dc) return FALSE; proc16 = dc->pAbortProc16; - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); if (proc16) { WORD args[2]; @@ -262,12 +255,13 @@ static BOOL CALLBACK call_abort_proc16( HDC hdc, INT code ) INT16 WINAPI SetAbortProc16(HDC16 hdc16, ABORTPROC16 abrtprc) { HDC hdc = HDC_32( hdc16 ); - DC *dc = DC_GetDCPtr( hdc ); + DC *dc = get_dc_ptr( hdc ); if (!dc) return FALSE; dc->pAbortProc16 = abrtprc; - DC_ReleaseDCPtr( dc ); - return SetAbortProc( hdc, call_abort_proc16 ); + dc->pAbortProc = call_abort_proc16; + release_dc_ptr( dc ); + return TRUE; } /********************************************************************** @@ -276,11 +270,11 @@ INT16 WINAPI SetAbortProc16(HDC16 hdc16, ABORTPROC16 abrtprc) */ INT WINAPI SetAbortProc(HDC hdc, ABORTPROC abrtprc) { - DC *dc = DC_GetDCPtr( hdc ); + DC *dc = get_dc_ptr( hdc ); if (!dc) return FALSE; dc->pAbortProc = abrtprc; - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return TRUE; }
1
0
0
0
Alexandre Julliard : gdi32: Don' t hold the GDI lock while calling the driver clipping functions.
by Alexandre Julliard
25 Sep '07
25 Sep '07
Module: wine Branch: master Commit: b12a782e5f59edde48c2a3a67b0c77c9c295717a URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b12a782e5f59edde48c2a3a67…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Sep 24 18:19:14 2007 +0200 gdi32: Don't hold the GDI lock while calling the driver clipping functions. --- dlls/gdi32/clipping.c | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/dlls/gdi32/clipping.c b/dlls/gdi32/clipping.c index 8b019c6..2c53dfb 100644 --- a/dlls/gdi32/clipping.c +++ b/dlls/gdi32/clipping.c @@ -172,7 +172,7 @@ INT16 WINAPI SelectVisRgn16( HDC16 hdc16, HRGN16 hrgn ) DC * dc; if (!hrgn) return ERROR; - if (!(dc = DC_GetDCPtr( hdc ))) return ERROR; + if (!(dc = get_dc_ptr( hdc ))) return ERROR; TRACE("%p %04x\n", hdc, hrgn ); @@ -180,7 +180,7 @@ INT16 WINAPI SelectVisRgn16( HDC16 hdc16, HRGN16 hrgn ) retval = CombineRgn( dc->hVisRgn, HRGN_32(hrgn), 0, RGN_COPY ); CLIPPING_UpdateGCRegion( dc ); - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return retval; } @@ -478,14 +478,14 @@ INT WINAPI GetClipRgn( HDC hdc, HRGN hRgn ) { INT ret = -1; DC * dc; - if (hRgn && (dc = DC_GetDCPtr( hdc ))) + if (hRgn && (dc = get_dc_ptr( hdc ))) { if( dc->hClipRgn ) { if( CombineRgn(hRgn, dc->hClipRgn, 0, RGN_COPY) != ERROR ) ret = 1; } else ret = 0; - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); } return ret; } @@ -497,13 +497,13 @@ INT WINAPI GetClipRgn( HDC hdc, HRGN hRgn ) INT WINAPI GetMetaRgn( HDC hdc, HRGN hRgn ) { INT ret = 0; - DC * dc = DC_GetDCPtr( hdc ); + DC * dc = get_dc_ptr( hdc ); if (dc) { if (dc->hMetaRgn && CombineRgn( hRgn, dc->hMetaRgn, 0, RGN_COPY ) != ERROR) ret = 1; - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); } return ret; } @@ -544,7 +544,7 @@ INT16 WINAPI RestoreVisRgn16( HDC16 hdc16 ) { struct saved_visrgn *saved; HDC hdc = HDC_32( hdc16 ); - DC *dc = DC_GetDCPtr( hdc ); + DC *dc = get_dc_ptr( hdc ); INT16 ret = ERROR; if (!dc) return ERROR; @@ -559,7 +559,7 @@ INT16 WINAPI RestoreVisRgn16( HDC16 hdc16 ) HeapFree( GetProcessHeap(), 0, saved ); CLIPPING_UpdateGCRegion( dc ); done: - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; } @@ -628,7 +628,7 @@ INT WINAPI SetMetaRgn( HDC hdc ) { INT ret; RECT dummy; - DC *dc = DC_GetDCPtr( hdc ); + DC *dc = get_dc_ptr( hdc ); if (!dc) return ERROR; @@ -651,6 +651,6 @@ INT WINAPI SetMetaRgn( HDC hdc ) /* Note: no need to call CLIPPING_UpdateGCRegion, the overall clip region hasn't changed */ ret = GetRgnBox( dc->hMetaRgn, &dummy ); - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; }
1
0
0
0
Alexandre Julliard : gdi32: Don' t hold the GDI lock while calling the driver OpenGL functions.
by Alexandre Julliard
25 Sep '07
25 Sep '07
Module: wine Branch: master Commit: 2e2df3faf3d51878067bee4168ffc6248d783afc URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2e2df3faf3d51878067bee416…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Sep 24 18:17:21 2007 +0200 gdi32: Don't hold the GDI lock while calling the driver OpenGL functions. --- dlls/gdi32/opengl.c | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/dlls/gdi32/opengl.c b/dlls/gdi32/opengl.c index 164f279..aebf17a 100644 --- a/dlls/gdi32/opengl.c +++ b/dlls/gdi32/opengl.c @@ -47,7 +47,7 @@ typedef struct opengl_context /* We route all wgl functions from opengl32.dll through gdi32.dll to * the display driver. Various wgl calls have a hDC as one of their parameters. - * Using DC_GetDCPtr we get access to the functions exported by the driver. + * Using get_dc_ptr we get access to the functions exported by the driver. * Some functions don't receive a hDC. This function creates a global hdc and * if there's already a global hdc, it returns it. */ @@ -94,13 +94,13 @@ BOOL WINAPI wglDeleteContext(HGLRC hglrc) return FALSE; /* Retrieve the HDC associated with the context to access the display driver */ - dc = DC_GetDCPtr(ctx->hdc); + dc = get_dc_ptr(ctx->hdc); if (!dc) return FALSE; if (!dc->funcs->pwglDeleteContext) FIXME(" :stub\n"); else ret = dc->funcs->pwglDeleteContext(hglrc); - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; } @@ -139,7 +139,7 @@ static HDC WINAPI wglGetPbufferDCARB(void *pbuffer) /* Create a device context to associate with the pbuffer */ HDC hdc = CreateDCA("DISPLAY", NULL, NULL, NULL); - DC *dc = DC_GetDCPtr(hdc); + DC *dc = get_dc_ptr(hdc); TRACE("(%p)\n", pbuffer); @@ -152,8 +152,8 @@ static HDC WINAPI wglGetPbufferDCARB(void *pbuffer) else ret = dc->funcs->pwglGetPbufferDCARB(dc->physDev, pbuffer); TRACE("(%p), hdc=%p\n", pbuffer, ret); - - DC_ReleaseDCPtr( dc ); + + release_dc_ptr( dc ); return ret; } @@ -227,15 +227,15 @@ BOOL WINAPI wglShareLists(HGLRC hglrc1, HGLRC hglrc2) TRACE("hglrc1: (%p); hglrc: (%p)\n", hglrc1, hglrc2); if(ctx == NULL) return FALSE; - + /* Retrieve the HDC associated with the context to access the display driver */ - dc = DC_GetDCPtr(ctx->hdc); + dc = get_dc_ptr(ctx->hdc); if (!dc) return FALSE; if (!dc->funcs->pwglShareLists) FIXME(" :stub\n"); else ret = dc->funcs->pwglShareLists(hglrc1, hglrc2); - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; } @@ -245,7 +245,7 @@ BOOL WINAPI wglShareLists(HGLRC hglrc1, HGLRC hglrc2) BOOL WINAPI wglUseFontBitmapsA(HDC hdc, DWORD first, DWORD count, DWORD listBase) { BOOL ret = FALSE; - DC * dc = DC_GetDCPtr( hdc ); + DC * dc = get_dc_ptr( hdc ); TRACE("(%p, %d, %d, %d)\n", hdc, first, count, listBase); @@ -254,7 +254,7 @@ BOOL WINAPI wglUseFontBitmapsA(HDC hdc, DWORD first, DWORD count, DWORD listBase if (!dc->funcs->pwglUseFontBitmapsA) FIXME(" :stub\n"); else ret = dc->funcs->pwglUseFontBitmapsA(dc->physDev, first, count, listBase); - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; } @@ -264,7 +264,7 @@ BOOL WINAPI wglUseFontBitmapsA(HDC hdc, DWORD first, DWORD count, DWORD listBase BOOL WINAPI wglUseFontBitmapsW(HDC hdc, DWORD first, DWORD count, DWORD listBase) { BOOL ret = FALSE; - DC * dc = DC_GetDCPtr( hdc ); + DC * dc = get_dc_ptr( hdc ); TRACE("(%p, %d, %d, %d)\n", hdc, first, count, listBase); @@ -273,7 +273,7 @@ BOOL WINAPI wglUseFontBitmapsW(HDC hdc, DWORD first, DWORD count, DWORD listBase if (!dc->funcs->pwglUseFontBitmapsW) FIXME(" :stub\n"); else ret = dc->funcs->pwglUseFontBitmapsW(dc->physDev, first, count, listBase); - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; }
1
0
0
0
Alexandre Julliard : gdi32: Don' t hold the GDI lock while calling the driver painting functions.
by Alexandre Julliard
25 Sep '07
25 Sep '07
Module: wine Branch: master Commit: 5557fac1c3cbcee29742f6eb2474ffdda1d46bbc URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5557fac1c3cbcee29742f6eb2…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Sep 24 18:16:48 2007 +0200 gdi32: Don't hold the GDI lock while calling the driver painting functions. --- dlls/gdi32/painting.c | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/gdi32/painting.c b/dlls/gdi32/painting.c index 1b8d6aa..72d8183 100644 --- a/dlls/gdi32/painting.c +++ b/dlls/gdi32/painting.c @@ -67,7 +67,7 @@ BOOL WINAPI LineTo( HDC hdc, INT x, INT y ) BOOL WINAPI MoveToEx( HDC hdc, INT x, INT y, LPPOINT pt ) { BOOL ret = TRUE; - DC * dc = DC_GetDCPtr( hdc ); + DC * dc = get_dc_ptr( hdc ); if(!dc) return FALSE; @@ -80,7 +80,7 @@ BOOL WINAPI MoveToEx( HDC hdc, INT x, INT y, LPPOINT pt ) if(PATH_IsPathOpen(dc->path)) ret = PATH_MoveTo(dc); else if (dc->funcs->pMoveTo) ret = dc->funcs->pMoveTo(dc->physDev,x,y); - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; } @@ -335,7 +335,7 @@ COLORREF WINAPI GetPixel( HDC hdc, INT x, INT y ) INT WINAPI ChoosePixelFormat( HDC hdc, const PIXELFORMATDESCRIPTOR* ppfd ) { INT ret = 0; - DC * dc = DC_GetDCPtr( hdc ); + DC * dc = get_dc_ptr( hdc ); TRACE("(%p,%p)\n",hdc,ppfd); @@ -344,7 +344,7 @@ INT WINAPI ChoosePixelFormat( HDC hdc, const PIXELFORMATDESCRIPTOR* ppfd ) if (!dc->funcs->pChoosePixelFormat) FIXME(" :stub\n"); else ret = dc->funcs->pChoosePixelFormat(dc->physDev,ppfd); - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; } @@ -427,7 +427,7 @@ INT WINAPI DescribePixelFormat( HDC hdc, INT iPixelFormat, UINT nBytes, LPPIXELFORMATDESCRIPTOR ppfd ) { INT ret = 0; - DC * dc = DC_GetDCPtr( hdc ); + DC * dc = get_dc_ptr( hdc ); TRACE("(%p,%d,%d,%p): stub\n",hdc,iPixelFormat,nBytes,ppfd); @@ -442,7 +442,7 @@ INT WINAPI DescribePixelFormat( HDC hdc, INT iPixelFormat, UINT nBytes, } else ret = dc->funcs->pDescribePixelFormat(dc->physDev,iPixelFormat,nBytes,ppfd); - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; }
1
0
0
0
Alexandre Julliard : gdi32: Don' t hold the GDI lock while calling the driver path functions.
by Alexandre Julliard
25 Sep '07
25 Sep '07
Module: wine Branch: master Commit: 0c4f81eefca57261aee954a4ce06fba8abb947b6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0c4f81eefca57261aee954a4c…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Sep 24 18:16:29 2007 +0200 gdi32: Don't hold the GDI lock while calling the driver path functions. --- dlls/gdi32/path.c | 48 ++++++++++++++++++++++++------------------------ 1 files changed, 24 insertions(+), 24 deletions(-) diff --git a/dlls/gdi32/path.c b/dlls/gdi32/path.c index b887a86..683bdba 100644 --- a/dlls/gdi32/path.c +++ b/dlls/gdi32/path.c @@ -129,7 +129,7 @@ static inline void INTERNAL_LPTODP_FLOAT(DC *dc, FLOAT_POINT *point) BOOL WINAPI BeginPath(HDC hdc) { BOOL ret = TRUE; - DC *dc = DC_GetDCPtr( hdc ); + DC *dc = get_dc_ptr( hdc ); if(!dc) return FALSE; @@ -148,7 +148,7 @@ BOOL WINAPI BeginPath(HDC hdc) dc->path.state=PATH_Open; } } - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; } @@ -159,7 +159,7 @@ BOOL WINAPI BeginPath(HDC hdc) BOOL WINAPI EndPath(HDC hdc) { BOOL ret = TRUE; - DC *dc = DC_GetDCPtr( hdc ); + DC *dc = get_dc_ptr( hdc ); if(!dc) return FALSE; @@ -176,7 +176,7 @@ BOOL WINAPI EndPath(HDC hdc) /* Set flag to indicate that path is finished */ else dc->path.state=PATH_Closed; } - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; } @@ -198,7 +198,7 @@ BOOL WINAPI EndPath(HDC hdc) BOOL WINAPI AbortPath( HDC hdc ) { BOOL ret = TRUE; - DC *dc = DC_GetDCPtr( hdc ); + DC *dc = get_dc_ptr( hdc ); if(!dc) return FALSE; @@ -206,7 +206,7 @@ BOOL WINAPI AbortPath( HDC hdc ) ret = dc->funcs->pAbortPath(dc->physDev); else /* Remove all entries from the path */ PATH_EmptyPath( &dc->path ); - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; } @@ -219,7 +219,7 @@ BOOL WINAPI AbortPath( HDC hdc ) BOOL WINAPI CloseFigure(HDC hdc) { BOOL ret = TRUE; - DC *dc = DC_GetDCPtr( hdc ); + DC *dc = get_dc_ptr( hdc ); if(!dc) return FALSE; @@ -245,7 +245,7 @@ BOOL WINAPI CloseFigure(HDC hdc) } } } - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; } @@ -258,7 +258,7 @@ INT WINAPI GetPath(HDC hdc, LPPOINT pPoints, LPBYTE pTypes, { INT ret = -1; GdiPath *pPath; - DC *dc = DC_GetDCPtr( hdc ); + DC *dc = get_dc_ptr( hdc ); if(!dc) return -1; @@ -293,7 +293,7 @@ INT WINAPI GetPath(HDC hdc, LPPOINT pPoints, LPBYTE pTypes, else ret = pPath->numEntriesUsed; } done: - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; } @@ -311,7 +311,7 @@ HRGN WINAPI PathToRegion(HDC hdc) { GdiPath *pPath; HRGN hrgnRval = 0; - DC *dc = DC_GetDCPtr( hdc ); + DC *dc = get_dc_ptr( hdc ); /* Get pointer to path */ if(!dc) return 0; @@ -328,7 +328,7 @@ HRGN WINAPI PathToRegion(HDC hdc) else hrgnRval=0; } - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return hrgnRval; } @@ -414,7 +414,7 @@ static BOOL PATH_FillPath(DC *dc, GdiPath *pPath) */ BOOL WINAPI FillPath(HDC hdc) { - DC *dc = DC_GetDCPtr( hdc ); + DC *dc = get_dc_ptr( hdc ); BOOL bRet = FALSE; if(!dc) return FALSE; @@ -431,7 +431,7 @@ BOOL WINAPI FillPath(HDC hdc) PATH_EmptyPath(&dc->path); } } - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return bRet; } @@ -446,7 +446,7 @@ BOOL WINAPI SelectClipPath(HDC hdc, INT iMode) GdiPath *pPath; HRGN hrgnPath; BOOL success = FALSE; - DC *dc = DC_GetDCPtr( hdc ); + DC *dc = get_dc_ptr( hdc ); if(!dc) return FALSE; @@ -471,7 +471,7 @@ BOOL WINAPI SelectClipPath(HDC hdc, INT iMode) /* FIXME: Should this function delete the path even if it failed? */ } } - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return success; } @@ -1698,7 +1698,7 @@ static void PATH_NormalizePoint(FLOAT_POINT corners[], BOOL WINAPI FlattenPath(HDC hdc) { BOOL ret = FALSE; - DC *dc = DC_GetDCPtr( hdc ); + DC *dc = get_dc_ptr( hdc ); if(!dc) return FALSE; @@ -1709,7 +1709,7 @@ BOOL WINAPI FlattenPath(HDC hdc) if(pPath->state != PATH_Closed) ret = PATH_FlattenPath(pPath); } - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; } @@ -2191,7 +2191,7 @@ static BOOL PATH_WidenPath(DC *dc) */ BOOL WINAPI StrokeAndFillPath(HDC hdc) { - DC *dc = DC_GetDCPtr( hdc ); + DC *dc = get_dc_ptr( hdc ); BOOL bRet = FALSE; if(!dc) return FALSE; @@ -2204,7 +2204,7 @@ BOOL WINAPI StrokeAndFillPath(HDC hdc) if(bRet) bRet = PATH_StrokePath(dc, &dc->path); if(bRet) PATH_EmptyPath(&dc->path); } - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return bRet; } @@ -2216,7 +2216,7 @@ BOOL WINAPI StrokeAndFillPath(HDC hdc) */ BOOL WINAPI StrokePath(HDC hdc) { - DC *dc = DC_GetDCPtr( hdc ); + DC *dc = get_dc_ptr( hdc ); GdiPath *pPath; BOOL bRet = FALSE; @@ -2231,7 +2231,7 @@ BOOL WINAPI StrokePath(HDC hdc) bRet = PATH_StrokePath(dc, pPath); PATH_EmptyPath(pPath); } - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return bRet; } @@ -2243,7 +2243,7 @@ BOOL WINAPI StrokePath(HDC hdc) */ BOOL WINAPI WidenPath(HDC hdc) { - DC *dc = DC_GetDCPtr( hdc ); + DC *dc = get_dc_ptr( hdc ); BOOL ret = FALSE; if(!dc) return FALSE; @@ -2252,6 +2252,6 @@ BOOL WINAPI WidenPath(HDC hdc) ret = dc->funcs->pWidenPath(dc->physDev); else ret = PATH_WidenPath(dc); - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; }
1
0
0
0
Alexandre Julliard : gdi32: Don' t hold the GDI lock while calling the driver mapping functions.
by Alexandre Julliard
25 Sep '07
25 Sep '07
Module: wine Branch: master Commit: a5a0d3c23b658bfb7f74891aa6e1833b420236e6 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=a5a0d3c23b658bfb7f74891aa…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Mon Sep 24 18:16:15 2007 +0200 gdi32: Don't hold the GDI lock while calling the driver mapping functions. --- dlls/gdi32/mapping.c | 52 +++++++++++++++++++++++++------------------------- 1 files changed, 26 insertions(+), 26 deletions(-) diff --git a/dlls/gdi32/mapping.c b/dlls/gdi32/mapping.c index eccd8c9..234f695 100644 --- a/dlls/gdi32/mapping.c +++ b/dlls/gdi32/mapping.c @@ -62,7 +62,7 @@ static void MAPPING_FixIsotropic( DC * dc ) */ BOOL16 WINAPI DPtoLP16( HDC16 hdc, LPPOINT16 points, INT16 count ) { - DC * dc = DC_GetDCPtr( HDC_32(hdc) ); + DC * dc = get_dc_ptr( HDC_32(hdc) ); if (!dc) return FALSE; while (count--) @@ -71,7 +71,7 @@ BOOL16 WINAPI DPtoLP16( HDC16 hdc, LPPOINT16 points, INT16 count ) points->y = MulDiv( points->y - dc->vportOrgY, dc->wndExtY, dc->vportExtY ) + dc->wndOrgY; points++; } - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return TRUE; } @@ -81,7 +81,7 @@ BOOL16 WINAPI DPtoLP16( HDC16 hdc, LPPOINT16 points, INT16 count ) */ BOOL WINAPI DPtoLP( HDC hdc, LPPOINT points, INT count ) { - DC * dc = DC_GetDCPtr( hdc ); + DC * dc = get_dc_ptr( hdc ); if (!dc) return FALSE; if (dc->vport2WorldValid) @@ -99,7 +99,7 @@ BOOL WINAPI DPtoLP( HDC hdc, LPPOINT points, INT count ) points++; } } - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return (count < 0); } @@ -109,7 +109,7 @@ BOOL WINAPI DPtoLP( HDC hdc, LPPOINT points, INT count ) */ BOOL16 WINAPI LPtoDP16( HDC16 hdc, LPPOINT16 points, INT16 count ) { - DC * dc = DC_GetDCPtr( HDC_32(hdc) ); + DC * dc = get_dc_ptr( HDC_32(hdc) ); if (!dc) return FALSE; while (count--) @@ -118,7 +118,7 @@ BOOL16 WINAPI LPtoDP16( HDC16 hdc, LPPOINT16 points, INT16 count ) points->y = MulDiv( points->y - dc->wndOrgY, dc->vportExtY, dc->wndExtY ) + dc->vportOrgY; points++; } - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return TRUE; } @@ -128,7 +128,7 @@ BOOL16 WINAPI LPtoDP16( HDC16 hdc, LPPOINT16 points, INT16 count ) */ BOOL WINAPI LPtoDP( HDC hdc, LPPOINT points, INT count ) { - DC * dc = DC_GetDCPtr( hdc ); + DC * dc = get_dc_ptr( hdc ); if (!dc) return FALSE; while (count--) @@ -143,7 +143,7 @@ BOOL WINAPI LPtoDP( HDC hdc, LPPOINT points, INT count ) dc->xformWorld2Vport.eDy + 0.5 ); points++; } - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return TRUE; } @@ -156,7 +156,7 @@ INT WINAPI SetMapMode( HDC hdc, INT mode ) INT ret; INT horzSize, vertSize, horzRes, vertRes; - DC * dc = DC_GetDCPtr( hdc ); + DC * dc = get_dc_ptr( hdc ); if (!dc) return 0; if (dc->funcs->pSetMapMode) { @@ -226,7 +226,7 @@ INT WINAPI SetMapMode( HDC hdc, INT mode ) dc->MapMode = mode; DC_UpdateXforms( dc ); done: - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; } @@ -237,7 +237,7 @@ INT WINAPI SetMapMode( HDC hdc, INT mode ) BOOL WINAPI SetViewportExtEx( HDC hdc, INT x, INT y, LPSIZE size ) { INT ret = TRUE; - DC * dc = DC_GetDCPtr( hdc ); + DC * dc = get_dc_ptr( hdc ); if (!dc) return FALSE; if (dc->funcs->pSetViewportExt) { @@ -265,7 +265,7 @@ BOOL WINAPI SetViewportExtEx( HDC hdc, INT x, INT y, LPSIZE size ) if (dc->MapMode == MM_ISOTROPIC) MAPPING_FixIsotropic( dc ); DC_UpdateXforms( dc ); done: - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; } @@ -276,7 +276,7 @@ BOOL WINAPI SetViewportExtEx( HDC hdc, INT x, INT y, LPSIZE size ) BOOL WINAPI SetViewportOrgEx( HDC hdc, INT x, INT y, LPPOINT pt ) { INT ret = TRUE; - DC * dc = DC_GetDCPtr( hdc ); + DC * dc = get_dc_ptr( hdc ); if (!dc) return FALSE; if (dc->funcs->pSetViewportOrg) { @@ -297,7 +297,7 @@ BOOL WINAPI SetViewportOrgEx( HDC hdc, INT x, INT y, LPPOINT pt ) DC_UpdateXforms( dc ); done: - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; } @@ -308,7 +308,7 @@ BOOL WINAPI SetViewportOrgEx( HDC hdc, INT x, INT y, LPPOINT pt ) BOOL WINAPI SetWindowExtEx( HDC hdc, INT x, INT y, LPSIZE size ) { INT ret = TRUE; - DC * dc = DC_GetDCPtr( hdc ); + DC * dc = get_dc_ptr( hdc ); if (!dc) return FALSE; if (dc->funcs->pSetWindowExt) { @@ -339,7 +339,7 @@ BOOL WINAPI SetWindowExtEx( HDC hdc, INT x, INT y, LPSIZE size ) if (dc->MapMode == MM_ISOTROPIC) MAPPING_FixIsotropic( dc ); DC_UpdateXforms( dc ); done: - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; } @@ -350,7 +350,7 @@ BOOL WINAPI SetWindowExtEx( HDC hdc, INT x, INT y, LPSIZE size ) BOOL WINAPI SetWindowOrgEx( HDC hdc, INT x, INT y, LPPOINT pt ) { INT ret = TRUE; - DC * dc = DC_GetDCPtr( hdc ); + DC * dc = get_dc_ptr( hdc ); if (!dc) return FALSE; if (dc->funcs->pSetWindowOrg) { @@ -370,7 +370,7 @@ BOOL WINAPI SetWindowOrgEx( HDC hdc, INT x, INT y, LPPOINT pt ) dc->wndOrgY = y; DC_UpdateXforms( dc ); done: - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; } @@ -381,7 +381,7 @@ BOOL WINAPI SetWindowOrgEx( HDC hdc, INT x, INT y, LPPOINT pt ) BOOL WINAPI OffsetViewportOrgEx( HDC hdc, INT x, INT y, LPPOINT pt) { INT ret = TRUE; - DC * dc = DC_GetDCPtr( hdc ); + DC * dc = get_dc_ptr( hdc ); if (!dc) return FALSE; if (dc->funcs->pOffsetViewportOrg) { @@ -401,7 +401,7 @@ BOOL WINAPI OffsetViewportOrgEx( HDC hdc, INT x, INT y, LPPOINT pt) dc->vportOrgY += y; DC_UpdateXforms( dc ); done: - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; } @@ -412,7 +412,7 @@ BOOL WINAPI OffsetViewportOrgEx( HDC hdc, INT x, INT y, LPPOINT pt) BOOL WINAPI OffsetWindowOrgEx( HDC hdc, INT x, INT y, LPPOINT pt ) { INT ret = TRUE; - DC * dc = DC_GetDCPtr( hdc ); + DC * dc = get_dc_ptr( hdc ); if (!dc) return FALSE; if (dc->funcs->pOffsetWindowOrg) { @@ -432,7 +432,7 @@ BOOL WINAPI OffsetWindowOrgEx( HDC hdc, INT x, INT y, LPPOINT pt ) dc->wndOrgY += y; DC_UpdateXforms( dc ); done: - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; } @@ -444,7 +444,7 @@ BOOL WINAPI ScaleViewportExtEx( HDC hdc, INT xNum, INT xDenom, INT yNum, INT yDenom, LPSIZE size ) { INT ret = TRUE; - DC * dc = DC_GetDCPtr( hdc ); + DC * dc = get_dc_ptr( hdc ); if (!dc) return FALSE; if (dc->funcs->pScaleViewportExt) { @@ -474,7 +474,7 @@ BOOL WINAPI ScaleViewportExtEx( HDC hdc, INT xNum, INT xDenom, if (dc->MapMode == MM_ISOTROPIC) MAPPING_FixIsotropic( dc ); DC_UpdateXforms( dc ); done: - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; } @@ -486,7 +486,7 @@ BOOL WINAPI ScaleWindowExtEx( HDC hdc, INT xNum, INT xDenom, INT yNum, INT yDenom, LPSIZE size ) { INT ret = TRUE; - DC * dc = DC_GetDCPtr( hdc ); + DC * dc = get_dc_ptr( hdc ); if (!dc) return FALSE; if (dc->funcs->pScaleWindowExt) { @@ -516,6 +516,6 @@ BOOL WINAPI ScaleWindowExtEx( HDC hdc, INT xNum, INT xDenom, if (dc->MapMode == MM_ISOTROPIC) MAPPING_FixIsotropic( dc ); DC_UpdateXforms( dc ); done: - DC_ReleaseDCPtr( dc ); + release_dc_ptr( dc ); return ret; }
1
0
0
0
Chris Morgan : We can't use $aArray += $oObject to add a single object to an array, switch to $aArray[] = $oObject instead
by Chris Morgan
25 Sep '07
25 Sep '07
Module: appdb Branch: master Commit: f378e0b4b5c1b2d222aca1f2fa37805f6ebfaafd URL:
http://source.winehq.org/git/appdb.git/?a=commit;h=f378e0b4b5c1b2d222aca1f2…
Author: Chris Morgan <cmorgan(a)alum.wpi.edu> Date: Mon Sep 24 22:25:49 2007 -0400 We can't use $aArray += $oObject to add a single object to an array, switch to $aArray[] = $oObject instead --- include/distribution.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/distribution.php b/include/distribution.php index 52c08a9..a51cdef 100644 --- a/include/distribution.php +++ b/include/distribution.php @@ -224,7 +224,7 @@ class distribution { $hResult = query_parameters($sQuery, $this->iDistributionId); while($oRow = mysql_fetch_object($hResult)) - $aTests += new testData(null, $oRow); + $aTests[] = new testData(null, $oRow); return $aTests; }
1
0
0
0
← Newer
1
...
13
14
15
16
17
18
19
...
79
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
Results per page:
10
25
50
100
200