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
January 2006
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
4 participants
617 discussions
Start a n
N
ew thread
Marcus Meissner : winsock: AF_UNSPEC mapping.
by Alexandre Julliard
03 Jan '06
03 Jan '06
Module: wine Branch: refs/heads/master Commit: 624e028787b7553f3ca25416d8b56260e6ea2b6b URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=624e028787b7553f3ca2541…
Author: Marcus Meissner <marcus(a)jet.franken.de> Date: Tue Jan 3 12:11:07 2006 +0100 winsock: AF_UNSPEC mapping. Also map AF_UNSPEC sockaddrs in the sockaddr handlers. Zero initialize the sockaddr in ws_sockaddr_alloc(). --- dlls/winsock/socket.c | 35 +++++++++++++++++++++++++++++------ 1 files changed, 29 insertions(+), 6 deletions(-) diff --git a/dlls/winsock/socket.c b/dlls/winsock/socket.c index 75de7f5..e47b182 100644 --- a/dlls/winsock/socket.c +++ b/dlls/winsock/socket.c @@ -900,7 +900,7 @@ static struct WS_protoent *check_buffer_ * start with. Note that the returned pointer may be the original pointer * if no conversion is necessary. */ -static const struct sockaddr* ws_sockaddr_ws2u(const struct WS_sockaddr* wsaddr, int wsaddrlen, unsigned int *uaddrlen) +static struct sockaddr* ws_sockaddr_ws2u(const struct WS_sockaddr* wsaddr, int wsaddrlen, unsigned int *uaddrlen) { switch (wsaddr->sa_family) { @@ -924,7 +924,7 @@ static const struct sockaddr* ws_sockadd #ifdef IPX_FRAME_NONE uipx->sipx_type=IPX_FRAME_NONE; #endif - return (const struct sockaddr*)uipx; + return (struct sockaddr*)uipx; } #endif case WS_AF_INET6: { @@ -943,7 +943,7 @@ static const struct sockaddr* ws_sockadd uin6->sin6_port = win6old->sin6_port; uin6->sin6_flowinfo = win6old->sin6_flowinfo; memcpy(&uin6->sin6_addr,&win6old->sin6_addr,16); /* 16 bytes = 128 address bits */ - return (const struct sockaddr*)uin6; + return (struct sockaddr*)uin6; } if (wsaddrlen>=sizeof(struct WS_sockaddr_in6)) { *uaddrlen=sizeof(struct sockaddr_in6); @@ -953,7 +953,7 @@ static const struct sockaddr* ws_sockadd uin6->sin6_flowinfo = win6->sin6_flowinfo; uin6->sin6_scope_id = win6->sin6_scope_id; memcpy(&uin6->sin6_addr,&win6->sin6_addr,16); /* 16 bytes = 128 address bits */ - return (const struct sockaddr*)uin6; + return (struct sockaddr*)uin6; } FIXME("bad size %d for WS_sockaddr_in6\n",wsaddrlen); return NULL; @@ -969,7 +969,26 @@ static const struct sockaddr* ws_sockadd uin->sin_family = AF_INET; uin->sin_port = win->sin_port; memcpy(&uin->sin_addr,&win->sin_addr,4); /* 4 bytes = 32 address bits */ - return (const struct sockaddr*)uin; + return (struct sockaddr*)uin; + } + case WS_AF_UNSPEC: { + /* Try to determine the needed space by the passed windows sockaddr space */ + switch (wsaddrlen) { + default: /* likely a ipv4 address */ + case sizeof(struct WS_sockaddr_in): + *uaddrlen = sizeof(struct sockaddr_in); + break; +#ifdef HAVE_IPX + case sizeof(struct WS_sockaddr_ipx): + *uaddrlen = sizeof(struct sockaddr_ipx); + break; +#endif + case sizeof(struct WS_sockaddr_in6): + case sizeof(struct WS_sockaddr_in6_old): + *uaddrlen = sizeof(struct sockaddr_in6); + break; + } + return HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,*uaddrlen); } default: FIXME("Unknown address family %d, return NULL.\n", wsaddr->sa_family); @@ -995,7 +1014,7 @@ static inline struct sockaddr* ws_sockad else *uaddrlen=max(sizeof(struct sockaddr),*wsaddrlen); - return HeapAlloc(GetProcessHeap(), 0, *uaddrlen); + return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, *uaddrlen); } /* Returns 0 if successful, -1 if the buffer is too small */ @@ -1083,6 +1102,10 @@ static int ws_sockaddr_u2ws(const struct *wsaddrlen = sizeof(struct WS_sockaddr_in); return 0; } + case AF_UNSPEC: { + memset(wsaddr,0,*wsaddrlen); + return 0; + } default: FIXME("Unknown address family %d\n", uaddr->sa_family); return -1;
1
0
0
0
Francois Gouget : Assorted spelling fixes
by Alexandre Julliard
03 Jan '06
03 Jan '06
Module: wine Branch: refs/heads/master Commit: 8ca1f3fc146529f5523949ba363d6db2e512be48 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=8ca1f3fc146529f5523949b…
Author: Francois Gouget <fgouget(a)free.fr> Date: Tue Jan 3 12:10:50 2006 +0100 Assorted spelling fixes --- dlls/ddraw/tests/dsurface.c | 2 +- dlls/user/edit.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/ddraw/tests/dsurface.c b/dlls/ddraw/tests/dsurface.c index e1e0c93..26fe659 100644 --- a/dlls/ddraw/tests/dsurface.c +++ b/dlls/ddraw/tests/dsurface.c @@ -241,7 +241,7 @@ static void QueryInterface(void) return; } - /* Call IUnkown::QueryInterface */ + /* Call IUnknown::QueryInterface */ ret = IDirectDrawSurface_QueryInterface(dsurface, 0, &object); ok(ret == DDERR_INVALIDPARAMS, "IDirectDrawSurface::QueryInterface returned %lx\n", ret); diff --git a/dlls/user/edit.c b/dlls/user/edit.c index 05575bd..98cf736 100644 --- a/dlls/user/edit.c +++ b/dlls/user/edit.c @@ -155,7 +155,7 @@ typedef struct /* * IME Data */ - UINT composition_len; /* lenght of composition, 0 == no composition */ + UINT composition_len; /* length of composition, 0 == no composition */ int composition_start; /* the character position for the composition */ } EDITSTATE;
1
0
0
0
Francois Gouget : Add trailing '\n's to ok() calls.
by Alexandre Julliard
03 Jan '06
03 Jan '06
Module: wine Branch: refs/heads/master Commit: 6526c3772dc8458089a34b4f441704bf84e380f2 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=6526c3772dc8458089a34b4…
Author: Francois Gouget <fgouget(a)free.fr> Date: Tue Jan 3 12:10:37 2006 +0100 Add trailing '\n's to ok() calls. Remove spaces before '\n' in traces. --- dlls/shell32/tests/shlfileop.c | 2 +- dlls/wined3d/stateblock.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/shell32/tests/shlfileop.c b/dlls/shell32/tests/shlfileop.c index fe753b7..16a78a3 100644 --- a/dlls/shell32/tests/shlfileop.c +++ b/dlls/shell32/tests/shlfileop.c @@ -502,7 +502,7 @@ static void test_copy(void) shfo.pTo = "testdir2\0"; retval = SHFileOperation(&shfo); ok(retval == ERROR_SUCCESS, "Expected ERROR_SUCCESS, got %ld\n", retval); - ok(file_exists("testdir2\\test1.txt"), "Expected testdir2\\test1 to exist"); + ok(file_exists("testdir2\\test1.txt"), "Expected testdir2\\test1 to exist\n"); /* try to copy files to a file */ clean_after_shfo_tests(); diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c index be4ca95..c1e3e94 100644 --- a/dlls/wined3d/stateblock.c +++ b/dlls/wined3d/stateblock.c @@ -88,7 +88,7 @@ ULONG WINAPI IWineD3DStateBlockImpl_Rele if (This->textures[counter]) { /* release our 'internal' hold on the texture */ if(0 != IWineD3DBaseTexture_Release(This->textures[counter])) { - TRACE("Texture still referenced by stateblock, applications has leaked Stage = %u Texture = %p \n", counter, This->textures[counter]); + TRACE("Texture still referenced by stateblock, applications has leaked Stage = %u Texture = %p\n", counter, This->textures[counter]); } } }
1
0
0
0
Francois Gouget : winapi: Update win32.api to match the current sources.
by Alexandre Julliard
03 Jan '06
03 Jan '06
Module: wine Branch: refs/heads/master Commit: 19d8a272d3a972a52f5d682d592b2842cb8bd9bc URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=19d8a272d3a972a52f5d682…
Author: Francois Gouget <fgouget(a)free.fr> Date: Tue Jan 3 12:10:23 2006 +0100 winapi: Update win32.api to match the current sources. --- tools/winapi/win32.api | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/tools/winapi/win32.api b/tools/winapi/win32.api index 2eb5979..e5a7df8 100644 --- a/tools/winapi/win32.api +++ b/tools/winapi/win32.api @@ -763,6 +763,7 @@ HWND IMAGEHLP_SYMBOL_TYPE_INFO MINIDUMP_TYPE ULONG +unsigned short %longlong @@ -773,6 +774,7 @@ ULONG64 DWORD64 * LPAPI_VERSION +LPEXT_API_VERSION LPSTACKFRAME LPSTACKFRAME64 LPVOID @@ -813,6 +815,7 @@ PSYMBOL_REGISTERED_CALLBACK64 PTRANSLATE_ADDRESS_ROUTINE PTRANSLATE_ADDRESS_ROUTINE64 PVOID +PWINDBG_EXTENSION_APIS ULONG * char ** void * @@ -826,6 +829,10 @@ PCSTR PSTR char * +%void + +void + %%dciman32.dll %long
1
0
0
0
Francois Gouget : Small documentation tweaks to avoid winapi_check warnings.
by Alexandre Julliard
03 Jan '06
03 Jan '06
Module: wine Branch: refs/heads/master Commit: 38884e0347fe9407c34455601df61c1443e8e147 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=38884e0347fe9407c344556…
Author: Francois Gouget <fgouget(a)free.fr> Date: Tue Jan 3 12:10:09 2006 +0100 Small documentation tweaks to avoid winapi_check warnings. --- dlls/msi/msi.c | 2 +- dlls/wldap32/page.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletions(-) diff --git a/dlls/msi/msi.c b/dlls/msi/msi.c index 0591a42..b80fe91 100644 --- a/dlls/msi/msi.c +++ b/dlls/msi/msi.c @@ -57,7 +57,7 @@ static LONG dll_count; static const WCHAR installerW[] = {'\\','I','n','s','t','a','l','l','e','r',0}; -/********************************************************************** +/* * Dll lifetime tracking declaration */ static void LockModule(void) diff --git a/dlls/wldap32/page.c b/dlls/wldap32/page.c index 81c6a8f..ef70057 100644 --- a/dlls/wldap32/page.c +++ b/dlls/wldap32/page.c @@ -187,6 +187,9 @@ ULONG ldap_get_paged_count( WLDAP32_LDAP return ret; } +/*********************************************************************** + * ldap_parse_page_controlA (WLDAP32.@) + */ ULONG ldap_parse_page_controlA( WLDAP32_LDAP *ld, PLDAPControlA *ctrls, ULONG *count, struct WLDAP32_berval **cookie ) { @@ -209,6 +212,9 @@ ULONG ldap_parse_page_controlA( WLDAP32_ return ret; } +/*********************************************************************** + * ldap_parse_page_controlW (WLDAP32.@) + */ ULONG ldap_parse_page_controlW( WLDAP32_LDAP *ld, PLDAPControlW *ctrls, ULONG *count, struct WLDAP32_berval **cookie ) {
1
0
0
0
Francois Gouget : winemenubuilder: Improve traces.
by Alexandre Julliard
03 Jan '06
03 Jan '06
Module: wine Branch: refs/heads/master Commit: 6f0ff1496629233e66adecdf2a4c1a8d07ab75e0 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=6f0ff1496629233e66adecd…
Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Tue Jan 3 12:09:47 2006 +0100 winemenubuilder: Improve traces. Add some traces to make it easier to debug icon generation problems. --- programs/winemenubuilder/winemenubuilder.c | 19 ++++++++++++++----- 1 files changed, 14 insertions(+), 5 deletions(-) diff --git a/programs/winemenubuilder/winemenubuilder.c b/programs/winemenubuilder/winemenubuilder.c index 3823142..50fd615 100644 --- a/programs/winemenubuilder/winemenubuilder.c +++ b/programs/winemenubuilder/winemenubuilder.c @@ -162,7 +162,10 @@ static BOOL SaveIconResAsXPM(const BITMA return FALSE; if (!(fXPMFile = fopen(szXPMFileName, "w"))) + { + WINE_TRACE("unable to open '%s' for writing: %s\n", szXPMFileName, strerror(errno)); return FALSE; + } i = WideCharToMultiByte(CP_UNIXCP, 0, commentW, -1, NULL, 0, NULL, NULL); comment = malloc(i); @@ -361,7 +364,10 @@ static int ExtractFromICO(LPCWSTR szFile filename = wine_get_unix_file_name(szFileName); if (!(fICOFile = fopen(filename, "r"))) + { + WINE_TRACE("unable to open '%s' for reading: %s\n", filename, strerror(errno)); goto error1; + } if (fread(&iconDir, sizeof (ICONDIR), 1, fICOFile) != 1) goto error2; @@ -487,15 +493,18 @@ static char *extract_icon( LPCWSTR path, if (!iconsdir) { WCHAR path[MAX_PATH]; - - if (GetTempPathW(MAX_PATH, path)) iconsdir = wine_get_unix_file_name(path); + if (GetTempPathW(MAX_PATH, path)) + iconsdir = wine_get_unix_file_name(path); + if (!iconsdir) + { + WINE_TRACE("no IconsDir\n"); + return NULL; /* No icon created */ + } } - - if (!iconsdir) - return NULL; /* No icon created */ if (!*iconsdir) { + WINE_TRACE("icon generation disabled\n"); HeapFree(GetProcessHeap(), 0, iconsdir); return NULL; /* No icon created */ }
1
0
0
0
Dmitry Timoshkov : gdi: Add a test which shows that GDI does not support compressed DIB sections.
by Alexandre Julliard
03 Jan '06
03 Jan '06
Module: wine Branch: refs/heads/master Commit: 6f7b62b729f1ee79e82c149ed0ca3d1e06d86e38 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=6f7b62b729f1ee79e82c149…
Author: Dmitry Timoshkov <dmitry(a)codeweavers.com> Date: Tue Jan 3 12:09:22 2006 +0100 gdi: Add a test which shows that GDI does not support compressed DIB sections. --- dlls/gdi/tests/bitmap.c | 58 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 58 insertions(+), 0 deletions(-) diff --git a/dlls/gdi/tests/bitmap.c b/dlls/gdi/tests/bitmap.c index edad192..5eeda35 100644 --- a/dlls/gdi/tests/bitmap.c +++ b/dlls/gdi/tests/bitmap.c @@ -198,9 +198,67 @@ static void test_dibsections(void) COLORREF c0, c1; int i; int screen_depth; + MEMORY_BASIC_INFORMATION info; hdc = GetDC(0); screen_depth = GetDeviceCaps(hdc, BITSPIXEL) * GetDeviceCaps(hdc, PLANES); + + memset(pbmi, 0, sizeof(bmibuf)); + pbmi->bmiHeader.biSize = sizeof(pbmi->bmiHeader); + pbmi->bmiHeader.biHeight = 100; + pbmi->bmiHeader.biWidth = 512; + pbmi->bmiHeader.biBitCount = 24; + pbmi->bmiHeader.biPlanes = 1; + pbmi->bmiHeader.biCompression = BI_RGB; + + SetLastError(0xdeadbeef); + hdib = CreateDIBSection(hdc, pbmi, DIB_RGB_COLORS, (void**)&bits, NULL, 0); + ok(hdib != NULL, "CreateDIBSection error %ld\n", GetLastError()); + ok(GetObject(hdib, sizeof(DIBSECTION), &dibsec) != 0, "GetObject failed for DIBSection\n"); + ok(dibsec.dsBm.bmBits == bits, "dibsec.dsBits %p != bits %p\n", dibsec.dsBm.bmBits, bits); + + /* test the DIB memory */ + ok(VirtualQuery(bits, &info, sizeof(info)) == sizeof(info), + "VirtualQuery failed\n"); + ok(info.BaseAddress == bits, "%p != %p\n", info.BaseAddress, bits); + ok(info.AllocationBase == bits, "%p != %p\n", info.AllocationBase, bits); + ok(info.AllocationProtect == PAGE_READWRITE, "%lx != PAGE_READWRITE\n", info.AllocationProtect); + ok(info.RegionSize == 0x26000, "0x%lx != 0x26000\n", info.RegionSize); + ok(info.State == MEM_COMMIT, "%lx != MEM_COMMIT\n", info.State); + ok(info.Protect == PAGE_READWRITE, "%lx != PAGE_READWRITE\n", info.Protect); + ok(info.Type == MEM_PRIVATE, "%lx != MEM_PRIVATE\n", info.Type); + + DeleteObject(hdib); + + pbmi->bmiHeader.biBitCount = 8; + pbmi->bmiHeader.biCompression = BI_RLE8; + SetLastError(0xdeadbeef); + hdib = CreateDIBSection(hdc, pbmi, DIB_RGB_COLORS, (void**)&bits, NULL, 0); + ok(hdib == NULL, "CreateDIBSection should fail when asked to create a compressed DIB section\n"); + ok(GetLastError() == 0xdeadbeef, "wrong error %ld\n", GetLastError()); + + pbmi->bmiHeader.biBitCount = 16; + pbmi->bmiHeader.biCompression = BI_BITFIELDS; + ((PDWORD)pbmi->bmiColors)[0] = 0xf800; + ((PDWORD)pbmi->bmiColors)[1] = 0x07e0; + ((PDWORD)pbmi->bmiColors)[2] = 0x001f; + SetLastError(0xdeadbeef); + hdib = CreateDIBSection(hdc, pbmi, DIB_RGB_COLORS, (void**)&bits, NULL, 0); + ok(hdib != NULL, "CreateDIBSection error %ld\n", GetLastError()); + + /* test the DIB memory */ + ok(VirtualQuery(bits, &info, sizeof(info)) == sizeof(info), + "VirtualQuery failed\n"); + ok(info.BaseAddress == bits, "%p != %p\n", info.BaseAddress, bits); + ok(info.AllocationBase == bits, "%p != %p\n", info.AllocationBase, bits); + ok(info.AllocationProtect == PAGE_READWRITE, "%lx != PAGE_READWRITE\n", info.AllocationProtect); + ok(info.RegionSize == 0x19000, "0x%lx != 0x19000\n", info.RegionSize); + ok(info.State == MEM_COMMIT, "%lx != MEM_COMMIT\n", info.State); + ok(info.Protect == PAGE_READWRITE, "%lx != PAGE_READWRITE\n", info.Protect); + ok(info.Type == MEM_PRIVATE, "%lx != MEM_PRIVATE\n", info.Type); + + DeleteObject(hdib); + memset(pbmi, 0, sizeof(bmibuf)); pbmi->bmiHeader.biSize = sizeof(pbmi->bmiHeader); pbmi->bmiHeader.biHeight = 16;
1
0
0
0
Ulrich Czekalla : gdi32: Disallow creation of compressed DIB sections.
by Alexandre Julliard
03 Jan '06
03 Jan '06
Module: wine Branch: refs/heads/master Commit: 4f5cbfb43d2f4a5f5c9883c28a28c9095c9ac448 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=4f5cbfb43d2f4a5f5c9883c…
Author: Ulrich Czekalla <ulrich(a)codeweavers.com> Date: Tue Jan 3 12:09:03 2006 +0100 gdi32: Disallow creation of compressed DIB sections. --- dlls/gdi/dib.c | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/dlls/gdi/dib.c b/dlls/gdi/dib.c index 26b8a1a..b408118 100644 --- a/dlls/gdi/dib.c +++ b/dlls/gdi/dib.c @@ -1148,6 +1148,12 @@ HBITMAP DIB_CreateDIBSection(HDC hdc, co &planes, &bpp, &compression, &sizeImage )) == -1)) return 0; + if (compression != BI_RGB && compression != BI_BITFIELDS) + { + TRACE("can't create a compressed (%lu) dibsection\n", compression); + return 0; + } + if (!(dib = HeapAlloc( GetProcessHeap(), 0, sizeof(*dib) ))) return 0; TRACE("format (%ld,%ld), planes %d, bpp %d, size %ld, %s\n", @@ -1186,12 +1192,7 @@ HBITMAP DIB_CreateDIBSection(HDC hdc, co if( bpp <= 8 ) dib->dsBmih.biClrUsed = 1 << bpp; - /* only use sizeImage if it's valid and we're dealing with a compressed bitmap */ - if (sizeImage && (compression == BI_RLE4 || compression == BI_RLE8)) - dib->dsBmih.biSizeImage = sizeImage; - else - dib->dsBmih.biSizeImage = dib->dsBm.bmWidthBytes * dib->dsBm.bmHeight; - + dib->dsBmih.biSizeImage = dib->dsBm.bmWidthBytes * dib->dsBm.bmHeight; /* set dsBitfields values */ if (usage == DIB_PAL_COLORS || bpp <= 8)
1
0
0
0
Robert Shearman : ole: Check the return value of IStream_SetSize in IStream_Read.
by Alexandre Julliard
03 Jan '06
03 Jan '06
Module: wine Branch: refs/heads/master Commit: dfa74b998ee8729f9129cd72119bf1e36f74fc23 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=dfa74b998ee8729f9129cd7…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Tue Jan 3 12:07:49 2006 +0100 ole: Check the return value of IStream_SetSize in IStream_Read. Check the return value of IStream_SetSize in IStream_Read, since otherwise execution could continue on and cause heap corruption. --- dlls/ole32/hglobalstream.c | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/dlls/ole32/hglobalstream.c b/dlls/ole32/hglobalstream.c index ca73a22..4d1d4b5 100644 --- a/dlls/ole32/hglobalstream.c +++ b/dlls/ole32/hglobalstream.c @@ -313,7 +313,12 @@ static HRESULT WINAPI HGLOBALStreamImpl_ if (newSize.u.LowPart > This->streamSize.u.LowPart) { /* grow stream */ - IStream_SetSize(iface, newSize); + HRESULT hr = IStream_SetSize(iface, newSize); + if (FAILED(hr)) + { + ERR("IStream_SetSize failed with error 0x%08lx\n", hr); + return hr; + } } /*
1
0
0
0
Robert Shearman : ole: Fix mis-handling of return value in StgStreamImpl_Read.
by Alexandre Julliard
03 Jan '06
03 Jan '06
Module: wine Branch: refs/heads/master Commit: 8f604e925d016a694e8f9d4ee1bf0505f409df23 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=8f604e925d016a694e8f9d4…
Author: Robert Shearman <rob(a)codeweavers.com> Date: Tue Jan 3 12:07:34 2006 +0100 ole: Fix mis-handling of return value in StgStreamImpl_Read. BlockChainStream_ReadAt returns a BOOL, not an HRESULT so change StgStreamImpl_Read to handle this, by returning STG_E_READFAULT on failure. --- dlls/ole32/stg_stream.c | 16 ++++++++++------ 1 files changed, 10 insertions(+), 6 deletions(-) diff --git a/dlls/ole32/stg_stream.c b/dlls/ole32/stg_stream.c index 40f0e81..19b8bda 100644 --- a/dlls/ole32/stg_stream.c +++ b/dlls/ole32/stg_stream.c @@ -249,7 +249,7 @@ static HRESULT WINAPI StgStreamImpl_Read ULONG bytesReadBuffer; ULONG bytesToReadFromBuffer; - HRESULT res = S_FALSE; + HRESULT res; TRACE("(%p, %p, %ld, %p)\n", iface, pv, cb, pcbRead); @@ -282,11 +282,15 @@ static HRESULT WINAPI StgStreamImpl_Read } else if (This->bigBlockChain!=0) { - res = BlockChainStream_ReadAt(This->bigBlockChain, - This->currentPosition, - bytesToReadFromBuffer, - pv, - pcbRead); + BOOL success = BlockChainStream_ReadAt(This->bigBlockChain, + This->currentPosition, + bytesToReadFromBuffer, + pv, + pcbRead); + if (success) + res = S_OK; + else + res = STG_E_READFAULT; } else {
1
0
0
0
← Newer
1
...
58
59
60
61
62
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
Results per page:
10
25
50
100
200