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
June
May
April
March
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
December 2008
----- 2025 -----
June 2025
May 2025
April 2025
March 2025
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
2 participants
1225 discussions
Start a n
N
ew thread
Alexandre Julliard : libwine: Don' t export the selector functions for the Windows build.
by Alexandre Julliard
05 Dec '08
05 Dec '08
Module: wine Branch: master Commit: 44162aa21a5c00d9efe603bffdd2cb1f86ed2b13 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=44162aa21a5c00d9efe603bff…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Fri Dec 5 13:25:23 2008 +0100 libwine: Don't export the selector functions for the Windows build. --- include/wine/library.h | 12 ++++++++++-- libs/wine/ldt.c | 5 +---- libs/wine/wine.def | 11 ----------- 3 files changed, 11 insertions(+), 17 deletions(-) diff --git a/include/wine/library.h b/include/wine/library.h index 2411ae1..84d0a60 100644 --- a/include/wine/library.h +++ b/include/wine/library.h @@ -93,7 +93,7 @@ extern void *wine_ldt_get_ptr( unsigned short sel, unsigned long offset ); extern unsigned short wine_ldt_alloc_entries( int count ); extern unsigned short wine_ldt_realloc_entries( unsigned short sel, int oldcount, int newcount ); extern void wine_ldt_free_entries( unsigned short sel, int count ); -#ifdef __i386__ +#if defined(__i386__) && !defined(__MINGW32__) && !defined(_MSC_VER) extern unsigned short wine_ldt_alloc_fs(void); extern void wine_ldt_init_fs( unsigned short sel, const LDT_ENTRY *entry ); extern void wine_ldt_free_fs( unsigned short sel ); @@ -178,7 +178,15 @@ static inline int wine_ldt_is_empty( const LDT_ENTRY *ent ) /* segment register access */ #ifdef __i386__ -# ifdef __GNUC__ +# ifdef __MINGW32__ +# define __DEFINE_GET_SEG(seg) \ + static inline unsigned short wine_get_##seg(void); \ + static inline unsigned short wine_get_##seg(void) \ + { unsigned short res; __asm__ __volatile__("movw %%" #seg ",%w0" : "=r"(res)); return res; } +# define __DEFINE_SET_SEG(seg) \ + static inline void wine_set_##seg(int val); \ + static inline void wine_set_##seg(int val) { __asm__("movw %w0,%%" #seg : : "r" (val)); } +# elif defined(__GNUC__) # define __DEFINE_GET_SEG(seg) \ extern inline unsigned short wine_get_##seg(void); \ extern inline unsigned short wine_get_##seg(void) \ diff --git a/libs/wine/ldt.c b/libs/wine/ldt.c index c46ff6f..80ceba8 100644 --- a/libs/wine/ldt.c +++ b/libs/wine/ldt.c @@ -385,7 +385,7 @@ void wine_ldt_free_entries( unsigned short sel, int count ) } -#ifdef __i386__ +#if defined(__i386__) && !defined(__MINGW32__) && !defined(_MSC_VER) static int global_fs_sel = -1; /* global selector for %fs shared among all threads */ @@ -477,8 +477,6 @@ void wine_ldt_free_fs( unsigned short sel ) /*********************************************************************** * selector access functions */ -# ifndef _MSC_VER -/* Nothing needs to be done for MS C, it will do with inline versions from the winnt.h */ __ASM_GLOBAL_FUNC( wine_get_cs, "movw %cs,%ax\n\tret" ) __ASM_GLOBAL_FUNC( wine_get_ds, "movw %ds,%ax\n\tret" ) __ASM_GLOBAL_FUNC( wine_get_es, "movw %es,%ax\n\tret" ) @@ -487,6 +485,5 @@ __ASM_GLOBAL_FUNC( wine_get_gs, "movw %gs,%ax\n\tret" ) __ASM_GLOBAL_FUNC( wine_get_ss, "movw %ss,%ax\n\tret" ) __ASM_GLOBAL_FUNC( wine_set_fs, "movl 4(%esp),%eax\n\tmovw %ax,%fs\n\tret" ) __ASM_GLOBAL_FUNC( wine_set_gs, "movl 4(%esp),%eax\n\tmovw %ax,%gs\n\tret" ) -# endif /* defined(_MSC_VER) */ #endif /* __i386__ */ diff --git a/libs/wine/wine.def b/libs/wine/wine.def index dc5f853..318db78 100644 --- a/libs/wine/wine.def +++ b/libs/wine/wine.def @@ -79,28 +79,19 @@ EXPORTS wine_get_build_dir wine_get_build_id wine_get_config_dir - wine_get_cs wine_get_data_dir - wine_get_ds - wine_get_es - wine_get_fs - wine_get_gs wine_get_server_dir wine_get_sortkey - wine_get_ss wine_get_user_name wine_get_version wine_init wine_init_argv0_path wine_is_dbcs_leadbyte wine_ldt_alloc_entries - wine_ldt_alloc_fs wine_ldt_copy wine_ldt_free_entries - wine_ldt_free_fs wine_ldt_get_entry wine_ldt_get_ptr - wine_ldt_init_fs wine_ldt_init_locking wine_ldt_is_system wine_ldt_realloc_entries @@ -111,8 +102,6 @@ EXPORTS wine_mmap_remove_reserved_area wine_pthread_get_functions wine_pthread_set_functions - wine_set_fs - wine_set_gs wine_switch_to_stack wine_utf8_mbstowcs wine_utf8_wcstombs
1
0
0
0
Nikolay Sivov : gdiplus: Added GdipScaleTextureTransform.
by Alexandre Julliard
05 Dec '08
05 Dec '08
Module: wine Branch: master Commit: 958e73aa69d7e2cb3d5aa8e57f563e9b06f282e2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=958e73aa69d7e2cb3d5aa8e57…
Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Fri Dec 5 10:37:21 2008 +0300 gdiplus: Added GdipScaleTextureTransform. --- dlls/gdiplus/brush.c | 14 ++++++++++++++ dlls/gdiplus/gdiplus.spec | 2 +- 2 files changed, 15 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c index 7fefd9f..a24f54e 100644 --- a/dlls/gdiplus/brush.c +++ b/dlls/gdiplus/brush.c @@ -954,6 +954,20 @@ GpStatus WINGDIPAPI GdipResetTextureTransform(GpTexture* brush) return GdipSetMatrixElements(brush->transform, 1.0, 0.0, 0.0, 1.0, 0.0, 0.0); } +/****************************************************************************** + * GdipScaleTextureTransform [GDIPLUS.@] + */ +GpStatus WINGDIPAPI GdipScaleTextureTransform(GpTexture* brush, + REAL sx, REAL sy, GpMatrixOrder order) +{ + TRACE("(%p, %.2f, %.2f, %d)\n", brush, sx, sy, order); + + if(!brush) + return InvalidParameter; + + return GdipScaleMatrix(brush->transform, sx, sy, order); +} + GpStatus WINGDIPAPI GdipSetLineBlend(GpLineGradient *brush, GDIPCONST REAL *blend, GDIPCONST REAL* positions, INT count) { diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index 1b3f307..b3d2103 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -500,7 +500,7 @@ @ stdcall GdipScaleMatrix(ptr long long long) @ stub GdipScalePathGradientTransform @ stub GdipScalePenTransform -@ stub GdipScaleTextureTransform +@ stdcall GdipScaleTextureTransform(ptr long long long) @ stdcall GdipScaleWorldTransform(ptr long long long) @ stdcall GdipSetAdjustableArrowCapFillState(ptr long) @ stdcall GdipSetAdjustableArrowCapHeight(ptr long)
1
0
0
0
Paul Vriens : hlink/tests: Fix some failures on Win9x and WinMe.
by Alexandre Julliard
05 Dec '08
05 Dec '08
Module: wine Branch: master Commit: d127bbd5db78cd513a30ae3d5c3735f7dbd5f73f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d127bbd5db78cd513a30ae3d5…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Fri Dec 5 10:10:29 2008 +0100 hlink/tests: Fix some failures on Win9x and WinMe. --- dlls/hlink/tests/hlink.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/dlls/hlink/tests/hlink.c b/dlls/hlink/tests/hlink.c index 89b7c7a..5e07359 100644 --- a/dlls/hlink/tests/hlink.c +++ b/dlls/hlink/tests/hlink.c @@ -351,6 +351,7 @@ static void test_persist_save_data(const char *testname, IHlink *lnk, const unsigned char *data; DWORD i; BOOL same; + unsigned int expected_data_win9x_size = 0; hr = IHlink_QueryInterface(lnk, &IID_IPersistStream, (void **)&ps); ok(hr == S_OK, "IHlink_QueryInterface failed with error 0x%08x\n", hr); @@ -368,8 +369,13 @@ static void test_persist_save_data(const char *testname, IHlink *lnk, data = GlobalLock(hglobal); + if (expected_data_size % 4) + expected_data_win9x_size = 4 * ((expected_data_size / 4) + 1); + /* first check we have the right amount of data */ - ok((data_size == expected_data_size) || (data_size == expected_data_alt_size), + ok((data_size == expected_data_size) || + (data_size == expected_data_alt_size) || + broken(data_size == expected_data_win9x_size), /* Win9x and WinMe */ "%s: Size of saved data differs (expected %d or %d, actual %d)\n", testname, expected_data_size, expected_data_alt_size, data_size);
1
0
0
0
Paul Vriens : gdi32/tests: Fix a few test failures on Win9x and WinMe.
by Alexandre Julliard
05 Dec '08
05 Dec '08
Module: wine Branch: master Commit: fee339f7ff9e3a46b6c9245c6df2943f0abd90e4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fee339f7ff9e3a46b6c9245c6…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Fri Dec 5 10:51:46 2008 +0100 gdi32/tests: Fix a few test failures on Win9x and WinMe. --- dlls/gdi32/tests/bitmap.c | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/dlls/gdi32/tests/bitmap.c b/dlls/gdi32/tests/bitmap.c index 7ab8323..7094f85 100644 --- a/dlls/gdi32/tests/bitmap.c +++ b/dlls/gdi32/tests/bitmap.c @@ -1956,11 +1956,17 @@ static void test_CreateBitmap(void) bmp.bmPlanes = 1; bmp.bmBitsPixel = i; bmp.bmBits = NULL; + SetLastError(0xdeadbeef); bm = CreateBitmapIndirect(&bmp); if(i > 32) { DWORD error = GetLastError(); - ok(bm == 0, "CreateBitmapIndirect for %d bpp succeeded\n", i); - ok(error == ERROR_INVALID_PARAMETER, "Got error %d, expected ERROR_INVALID_PARAMETER\n", error); + ok(bm == 0 || + broken(bm != 0), /* Win9x and WinMe */ + "CreateBitmapIndirect for %d bpp succeeded\n", i); + ok(error == ERROR_INVALID_PARAMETER || + broken(error == 0xdeadbeef), /* Win9x and WinME */ + "Got error %d, expected ERROR_INVALID_PARAMETER\n", error); + DeleteObject(bm); continue; } ok(bm != 0, "CreateBitmapIndirect error %u\n", GetLastError()); @@ -1978,7 +1984,9 @@ static void test_CreateBitmap(void) } else if(i <= 32) { expect = 32; } - ok(bmp.bmBitsPixel == expect, "CreateBitmapIndirect for a %d bpp bitmap created a %d bpp bitmap, expected %d\n", + ok(bmp.bmBitsPixel == expect || + broken(bmp.bmBitsPixel == i), /* Win9x and WinMe */ + "CreateBitmapIndirect for a %d bpp bitmap created a %d bpp bitmap, expected %d\n", i, bmp.bmBitsPixel, expect); DeleteObject(bm); }
1
0
0
0
Paul Vriens : shlwapi/tests: Use a codepage that is supported on all platforms.
by Alexandre Julliard
05 Dec '08
05 Dec '08
Module: wine Branch: master Commit: 8fc42993a1779d7984f7ea9552c080b1a36524dd URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8fc42993a1779d7984f7ea955…
Author: Paul Vriens <Paul.Vriens.Wine(a)gmail.com> Date: Fri Dec 5 08:49:08 2008 +0100 shlwapi/tests: Use a codepage that is supported on all platforms. --- dlls/shlwapi/tests/url.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/shlwapi/tests/url.c b/dlls/shlwapi/tests/url.c index 7ae79bc..80aee98 100644 --- a/dlls/shlwapi/tests/url.c +++ b/dlls/shlwapi/tests/url.c @@ -746,7 +746,7 @@ static void test_UrlCanonicalizeW(void) BOOL choped; int pos; - MultiByteToWideChar(CP_UTF8, 0, "
http://www.winehq.org/X
", -1, szUrl, 128); + MultiByteToWideChar(CP_ACP, 0, "
http://www.winehq.org/X
", -1, szUrl, 128); pos = lstrlenW(szUrl) - 1; szUrl[pos] = i; urllen = INTERNET_MAX_URL_LENGTH;
1
0
0
0
Michael Stefaniuc : gdiplus: Remove some superfluous casts.
by Alexandre Julliard
05 Dec '08
05 Dec '08
Module: wine Branch: master Commit: 50ff5494202e707bd07a3173e40e441597ea2df7 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=50ff5494202e707bd07a3173e…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Fri Dec 5 07:53:04 2008 +0100 gdiplus: Remove some superfluous casts. --- dlls/gdiplus/font.c | 2 +- dlls/gdiplus/image.c | 3 ++- dlls/gdiplus/tests/region.c | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/dlls/gdiplus/font.c b/dlls/gdiplus/font.c index 2366823..220409b 100644 --- a/dlls/gdiplus/font.c +++ b/dlls/gdiplus/font.c @@ -256,7 +256,7 @@ GpStatus WINGDIPAPI GdipCreateFontFromDC(HDC hdc, GpFont **font) if(!font) return InvalidParameter; - hfont = (HFONT)GetCurrentObject(hdc, OBJ_FONT); + hfont = GetCurrentObject(hdc, OBJ_FONT); if(!hfont) return GenericError; diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index 683e9b7..0c61056 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -370,7 +370,8 @@ GpStatus WINGDIPAPI GdipCreateBitmapFromResource(HINSTANCE hInstance, return InvalidParameter; /* load DIB */ - hbm = (HBITMAP)LoadImageW(hInstance,lpBitmapName,IMAGE_BITMAP,0,0,LR_CREATEDIBSECTION); + hbm = LoadImageW(hInstance, lpBitmapName, IMAGE_BITMAP, 0, 0, + LR_CREATEDIBSECTION); if(hbm){ stat = GdipCreateBitmapFromHBITMAP(hbm, NULL, bitmap); diff --git a/dlls/gdiplus/tests/region.c b/dlls/gdiplus/tests/region.c index 15363f2..1373634 100644 --- a/dlls/gdiplus/tests/region.c +++ b/dlls/gdiplus/tests/region.c @@ -765,7 +765,7 @@ todo_wine{ } GdipDeleteRegion(region); - DeleteObject((HGDIOBJ)hrgn); + DeleteObject(hrgn); /* ellipse */ hrgn = CreateEllipticRgn(0, 0, 100, 10); @@ -791,7 +791,7 @@ todo_wine{ expect_dword(buf + 8, 0x00006000); /* ?? */ } GdipDeleteRegion(region); - DeleteObject((HGDIOBJ)hrgn); + DeleteObject(hrgn); } static void test_gethrgn(void)
1
0
0
0
Michael Stefaniuc : gdiplus: Reduce the number of casts by using the proper type for variables.
by Alexandre Julliard
05 Dec '08
05 Dec '08
Module: wine Branch: master Commit: 4386caa13b00c4eab5708769fc6c1faab78a1f62 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4386caa13b00c4eab5708769f…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Fri Dec 5 07:52:51 2008 +0100 gdiplus: Reduce the number of casts by using the proper type for variables. --- dlls/gdiplus/brush.c | 11 +++++------ dlls/gdiplus/image.c | 32 +++++++++++++++----------------- 2 files changed, 20 insertions(+), 23 deletions(-) diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c index efcf31d..7fefd9f 100644 --- a/dlls/gdiplus/brush.c +++ b/dlls/gdiplus/brush.c @@ -478,8 +478,7 @@ GpStatus WINGDIPAPI GdipCreateTextureIA(GpImage *image, REAL height, GpTexture **texture) { HDC hdc; - OLE_HANDLE hbm; - HBITMAP old = NULL; + HBITMAP hbm, old = NULL; BITMAPINFO *pbmi; BITMAPINFOHEADER *bmih; INT n_x, n_y, n_width, n_height, abs_height, stride, image_stride, i, bytespp; @@ -507,7 +506,7 @@ GpStatus WINGDIPAPI GdipCreateTextureIA(GpImage *image, n_y + n_height > ((GpBitmap*)image)->height) return InvalidParameter; - IPicture_get_Handle(image->picture, &hbm); + IPicture_get_Handle(image->picture, (OLE_HANDLE*)&hbm); if(!hbm) return GenericError; IPicture_get_CurDC(image->picture, &hdc); bm_is_selected = (hdc != 0); @@ -520,11 +519,11 @@ GpStatus WINGDIPAPI GdipCreateTextureIA(GpImage *image, if(!bm_is_selected){ hdc = CreateCompatibleDC(0); - old = SelectObject(hdc, (HBITMAP)hbm); + old = SelectObject(hdc, hbm); } /* fill out bmi */ - GetDIBits(hdc, (HBITMAP)hbm, 0, 0, NULL, pbmi, DIB_RGB_COLORS); + GetDIBits(hdc, hbm, 0, 0, NULL, pbmi, DIB_RGB_COLORS); bytespp = pbmi->bmiHeader.biBitCount / 8; abs_height = abs(pbmi->bmiHeader.biHeight); @@ -538,7 +537,7 @@ GpStatus WINGDIPAPI GdipCreateTextureIA(GpImage *image, dibits = GdipAlloc(pbmi->bmiHeader.biSizeImage); if(dibits) /* this is not a good place to error out */ - GetDIBits(hdc, (HBITMAP)hbm, 0, abs_height, dibits, pbmi, DIB_RGB_COLORS); + GetDIBits(hdc, hbm, 0, abs_height, dibits, pbmi, DIB_RGB_COLORS); if(!bm_is_selected){ SelectObject(hdc, old); diff --git a/dlls/gdiplus/image.c b/dlls/gdiplus/image.c index 581eb27..683e9b7 100644 --- a/dlls/gdiplus/image.c +++ b/dlls/gdiplus/image.c @@ -96,9 +96,8 @@ GpStatus WINGDIPAPI GdipBitmapLockBits(GpBitmap* bitmap, GDIPCONST GpRect* rect, { BOOL bm_is_selected; INT stride, bitspp = PIXELFORMATBPP(format); - OLE_HANDLE hbm; HDC hdc; - HBITMAP old = NULL; + HBITMAP hbm, old = NULL; BITMAPINFO *pbmi; BYTE *buff = NULL; UINT abs_height; @@ -128,7 +127,7 @@ GpStatus WINGDIPAPI GdipBitmapLockBits(GpBitmap* bitmap, GDIPCONST GpRect* rect, if(bitmap->lockmode) return WrongState; - IPicture_get_Handle(bitmap->image.picture, &hbm); + IPicture_get_Handle(bitmap->image.picture, (OLE_HANDLE*)&hbm); IPicture_get_CurDC(bitmap->image.picture, &hdc); bm_is_selected = (hdc != 0); @@ -140,11 +139,11 @@ GpStatus WINGDIPAPI GdipBitmapLockBits(GpBitmap* bitmap, GDIPCONST GpRect* rect, if(!bm_is_selected){ hdc = CreateCompatibleDC(0); - old = SelectObject(hdc, (HBITMAP)hbm); + old = SelectObject(hdc, hbm); } /* fill out bmi */ - GetDIBits(hdc, (HBITMAP)hbm, 0, 0, NULL, pbmi, DIB_RGB_COLORS); + GetDIBits(hdc, hbm, 0, 0, NULL, pbmi, DIB_RGB_COLORS); abs_height = abs(pbmi->bmiHeader.biHeight); stride = pbmi->bmiHeader.biWidth * bitspp / 8; @@ -155,7 +154,7 @@ GpStatus WINGDIPAPI GdipBitmapLockBits(GpBitmap* bitmap, GDIPCONST GpRect* rect, pbmi->bmiHeader.biBitCount = bitspp; if(buff) - GetDIBits(hdc, (HBITMAP)hbm, 0, abs_height, buff, pbmi, DIB_RGB_COLORS); + GetDIBits(hdc, hbm, 0, abs_height, buff, pbmi, DIB_RGB_COLORS); if(!bm_is_selected){ SelectObject(hdc, old); @@ -194,9 +193,8 @@ GpStatus WINGDIPAPI GdipBitmapLockBits(GpBitmap* bitmap, GDIPCONST GpRect* rect, GpStatus WINGDIPAPI GdipBitmapUnlockBits(GpBitmap* bitmap, BitmapData* lockeddata) { - OLE_HANDLE hbm; HDC hdc; - HBITMAP old = NULL; + HBITMAP hbm, old = NULL; BOOL bm_is_selected; BITMAPINFO *pbmi; @@ -218,7 +216,7 @@ GpStatus WINGDIPAPI GdipBitmapUnlockBits(GpBitmap* bitmap, return Ok; } - IPicture_get_Handle(bitmap->image.picture, &hbm); + IPicture_get_Handle(bitmap->image.picture, (OLE_HANDLE*)&hbm); IPicture_get_CurDC(bitmap->image.picture, &hdc); bm_is_selected = (hdc != 0); @@ -228,12 +226,12 @@ GpStatus WINGDIPAPI GdipBitmapUnlockBits(GpBitmap* bitmap, if(!bm_is_selected){ hdc = CreateCompatibleDC(0); - old = SelectObject(hdc, (HBITMAP)hbm); + old = SelectObject(hdc, hbm); } - GetDIBits(hdc, (HBITMAP)hbm, 0, 0, NULL, pbmi, DIB_RGB_COLORS); + GetDIBits(hdc, hbm, 0, 0, NULL, pbmi, DIB_RGB_COLORS); pbmi->bmiHeader.biBitCount = PIXELFORMATBPP(lockeddata->PixelFormat); - SetDIBits(hdc, (HBITMAP)hbm, 0, abs(pbmi->bmiHeader.biHeight), + SetDIBits(hdc, hbm, 0, abs(pbmi->bmiHeader.biHeight), bitmap->bitmapbits, pbmi, DIB_RGB_COLORS); if(!bm_is_selected){ @@ -1035,7 +1033,7 @@ GpStatus WINGDIPAPI GdipLoadImageFromStream(IStream* stream, GpImage **image) if(type == PICTYPE_BITMAP){ BITMAPINFO *pbmi; BITMAPCOREHEADER* bmch; - OLE_HANDLE hbm; + HBITMAP hbm; HDC hdc; pbmi = GdipAlloc(sizeof(BITMAPINFOHEADER) + 256 * sizeof(RGBQUAD)); @@ -1052,7 +1050,7 @@ GpStatus WINGDIPAPI GdipLoadImageFromStream(IStream* stream, GpImage **image) (*((GpBitmap**) image))->height = ipicture_pixel_height(pic); /* get the pixel format */ - IPicture_get_Handle(pic, &hbm); + IPicture_get_Handle(pic, (OLE_HANDLE*)&hbm); IPicture_get_CurDC(pic, &hdc); bmch = (BITMAPCOREHEADER*) (&pbmi->bmiHeader); @@ -1061,13 +1059,13 @@ GpStatus WINGDIPAPI GdipLoadImageFromStream(IStream* stream, GpImage **image) if(!hdc){ HBITMAP old; hdc = CreateCompatibleDC(0); - old = SelectObject(hdc, (HBITMAP)hbm); - GetDIBits(hdc, (HBITMAP)hbm, 0, 0, NULL, pbmi, DIB_RGB_COLORS); + old = SelectObject(hdc, hbm); + GetDIBits(hdc, hbm, 0, 0, NULL, pbmi, DIB_RGB_COLORS); SelectObject(hdc, old); DeleteDC(hdc); } else - GetDIBits(hdc, (HBITMAP)hbm, 0, 0, NULL, pbmi, DIB_RGB_COLORS); + GetDIBits(hdc, hbm, 0, 0, NULL, pbmi, DIB_RGB_COLORS); (*((GpBitmap**) image))->format = (bmch->bcBitCount << 8) | PixelFormatGDI; GdipFree(pbmi);
1
0
0
0
Michael Stefaniuc : ddraw: Remove two superfluous casts.
by Alexandre Julliard
05 Dec '08
05 Dec '08
Module: wine Branch: master Commit: 176c8eb33395a8d8683b831946e03f01f9885cc3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=176c8eb33395a8d8683b83194…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Fri Dec 5 07:51:16 2008 +0100 ddraw: Remove two superfluous casts. --- dlls/ddraw/main.c | 2 +- dlls/ddraw/tests/ddrawmodes.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ddraw/main.c b/dlls/ddraw/main.c index 21cd272..4bd08c8 100644 --- a/dlls/ddraw/main.c +++ b/dlls/ddraw/main.c @@ -267,7 +267,7 @@ DDRAW_Create(const GUID *guid, This->wnd_class.hInstance = GetModuleHandleA(0); This->wnd_class.hIcon = 0; This->wnd_class.hCursor = 0; - This->wnd_class.hbrBackground = (HBRUSH) GetStockObject(BLACK_BRUSH); + This->wnd_class.hbrBackground = GetStockObject(BLACK_BRUSH); This->wnd_class.lpszMenuName = NULL; This->wnd_class.lpszClassName = This->classname; if(!RegisterClassA(&This->wnd_class)) diff --git a/dlls/ddraw/tests/ddrawmodes.c b/dlls/ddraw/tests/ddrawmodes.c index dcde97d..d21c3b4 100644 --- a/dlls/ddraw/tests/ddrawmodes.c +++ b/dlls/ddraw/tests/ddrawmodes.c @@ -47,7 +47,7 @@ static void createwindow(void) wc.hInstance = GetModuleHandleA(0); wc.hIcon = LoadIconA(wc.hInstance, IDI_APPLICATION); wc.hCursor = LoadCursorA(NULL, IDC_ARROW); - wc.hbrBackground = (HBRUSH) GetStockObject(BLACK_BRUSH); + wc.hbrBackground = GetStockObject(BLACK_BRUSH); wc.lpszMenuName = NULL; wc.lpszClassName = "TestWindowClass"; if(!RegisterClassA(&wc))
1
0
0
0
Michael Stefaniuc : atl: Remove two superfluous casts.
by Alexandre Julliard
05 Dec '08
05 Dec '08
Module: wine Branch: master Commit: fa1d0498470b120d2ad01648782c9eff17bcf2c4 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=fa1d0498470b120d2ad016487…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Fri Dec 5 07:50:43 2008 +0100 atl: Remove two superfluous casts. --- dlls/atl/atl_ax.c | 2 +- dlls/atl/registrar.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/atl/atl_ax.c b/dlls/atl/atl_ax.c index a5ae342..c98cba7 100644 --- a/dlls/atl/atl_ax.c +++ b/dlls/atl/atl_ax.c @@ -1244,7 +1244,7 @@ HWND WINAPI AtlAxCreateDialogW(HINSTANCE hInst, LPCWSTR name, HWND owner, DLGPRO hgl = LoadResource (hInst, hrsrc); if ( !hgl ) return NULL; - ptr = (LPCDLGTEMPLATEW)LockResource ( hgl ); + ptr = LockResource ( hgl ); if (!ptr) { FreeResource( hgl ); diff --git a/dlls/atl/registrar.c b/dlls/atl/registrar.c index dd8b7a2..d3ca9b0 100644 --- a/dlls/atl/registrar.c +++ b/dlls/atl/registrar.c @@ -439,7 +439,7 @@ static HRESULT resource_register(Registrar *This, LPCOLESTR resFileName, if(hins) { src = FindResourceW(hins, szID, szType); if(src) { - regstra = (LPSTR)LoadResource(hins, src); + regstra = LoadResource(hins, src); reslen = SizeofResource(hins, src); if(regstra) { len = MultiByteToWideChar(CP_ACP, 0, regstra, reslen, NULL, 0)+1;
1
0
0
0
Michael Stefaniuc : wnaspi32: Remove some superfluous casts.
by Alexandre Julliard
05 Dec '08
05 Dec '08
Module: wine Branch: master Commit: f4c2f2b0c4155f22346869c0d29ec0e1866739f8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f4c2f2b0c4155f22346869c0d…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Fri Dec 5 07:49:17 2008 +0100 wnaspi32: Remove some superfluous casts. --- dlls/wnaspi32/winaspi32.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/wnaspi32/winaspi32.c b/dlls/wnaspi32/winaspi32.c index 94ed418..45b352c 100644 --- a/dlls/wnaspi32/winaspi32.c +++ b/dlls/wnaspi32/winaspi32.c @@ -292,8 +292,8 @@ WNASPI32_DoPosting( SRB_ExecSCSICmd *lpPRB, DWORD status ) (*SRB_PostProc)(lpPRB); } else if (SRB_Flags & SRB_EVENT_NOTIFY) { - TRACE("Setting event %p\n", (HANDLE)SRB_PostProc); - SetEvent((HANDLE)SRB_PostProc); + TRACE("Setting event %p\n", SRB_PostProc); + SetEvent(SRB_PostProc); } } return SS_PENDING; @@ -598,7 +598,7 @@ DWORD __cdecl GetASPI32DLLVersion(void) return (DWORD)1; #else FIXME("Please add SCSI support for your operating system, returning 0\n"); - return (DWORD)0; + return 0; #endif }
1
0
0
0
← Newer
1
...
95
96
97
98
99
100
101
...
123
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
Results per page:
10
25
50
100
200