winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
December 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
720 discussions
Start a n
N
ew thread
Rob Shearman : ole32: Support reading and writing custom clipformats in the data cache.
by Alexandre Julliard
18 Dec '06
18 Dec '06
Module: wine Branch: master Commit: cc30255c8a6ca3c8f04995ab8184cea106dcc0d2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cc30255c8a6ca3c8f04995ab8…
Author: Rob Shearman <rob(a)codeweavers.com> Date: Sun Dec 17 23:44:18 2006 +0000 ole32: Support reading and writing custom clipformats in the data cache. --- dlls/ole32/datacache.c | 125 +++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 109 insertions(+), 16 deletions(-) diff --git a/dlls/ole32/datacache.c b/dlls/ole32/datacache.c index 33795f3..249882e 100644 --- a/dlls/ole32/datacache.c +++ b/dlls/ole32/datacache.c @@ -67,13 +67,17 @@ WINE_DEFAULT_DEBUG_CHANNEL(ole); * * This structure represents the header of the \002OlePresXXX stream in * the OLE object strorage. - * - * Most fields are still unknown. */ typedef struct PresentationDataHeader { - DWORD unknown1; /* -1 */ - DWORD clipformat; + /* clipformat: + * - standard clipformat: + * DWORD length = 0xffffffff; + * DWORD cfFormat; + * - or custom clipformat: + * DWORD length; + * CHAR format_name[length]; (null-terminated) + */ DWORD unknown3; /* 4, possibly TYMED_ISTREAM */ DVASPECT dvAspect; DWORD lindex; @@ -355,7 +359,6 @@ static BOOL DataCache_IsPresentationStre LPCWSTR name = elem->pwcsName; return (elem->type == STGTY_STREAM) - && (elem->cbSize.u.LowPart >= sizeof(PresentationDataHeader)) && (strlenW(name) == 11) && (strncmpW(name, OlePres, 8) == 0) && (name[8] >= '0') && (name[8] <= '9') @@ -363,6 +366,71 @@ static BOOL DataCache_IsPresentationStre && (name[10] >= '0') && (name[10] <= '9'); } +static HRESULT read_clipformat(IStream *stream, CLIPFORMAT *clipformat) +{ + DWORD length; + HRESULT hr; + ULONG read; + + *clipformat = 0; + + hr = IStream_Read(stream, &length, sizeof(length), &read); + if (hr != S_OK || read != sizeof(length)) + return DV_E_CLIPFORMAT; + if (length == -1) + { + DWORD cf; + hr = IStream_Read(stream, &cf, sizeof(cf), 0); + if (hr != S_OK || read != sizeof(cf)) + return DV_E_CLIPFORMAT; + *clipformat = cf; + } + else + { + char *format_name = HeapAlloc(GetProcessHeap(), 0, length); + if (!format_name) + return E_OUTOFMEMORY; + hr = IStream_Read(stream, format_name, length, &read); + if (hr != S_OK || read != length || format_name[length - 1] != '\0') + { + HeapFree(GetProcessHeap(), 0, format_name); + return DV_E_CLIPFORMAT; + } + *clipformat = RegisterClipboardFormatA(format_name); + HeapFree(GetProcessHeap(), 0, format_name); + } + return S_OK; +} + +static HRESULT write_clipformat(IStream *stream, CLIPFORMAT clipformat) +{ + DWORD length; + HRESULT hr; + + if (clipformat < 0xc000) + length = -1; + else + length = GetClipboardFormatNameA(clipformat, NULL, 0); + hr = IStream_Write(stream, &length, sizeof(length), NULL); + if (FAILED(hr)) + return hr; + if (clipformat < 0xc000) + { + DWORD cf = clipformat; + hr = IStream_Write(stream, &cf, sizeof(cf), NULL); + } + else + { + char *format_name = HeapAlloc(GetProcessHeap(), 0, length); + if (!format_name) + return E_OUTOFMEMORY; + GetClipboardFormatNameA(clipformat, format_name, length); + hr = IStream_Write(stream, format_name, length, NULL); + HeapFree(GetProcessHeap(), 0, format_name); + } + return hr; +} + /************************************************************************ * DataCacheEntry_OpenPresStream * @@ -414,8 +482,12 @@ static HRESULT DataCacheEntry_OpenPresSt { PresentationDataHeader header; ULONG actual_read; + CLIPFORMAT clipformat; + + hr = read_clipformat(pStm, &clipformat); - hr = IStream_Read(pStm, &header, sizeof(header), &actual_read); + if (hr == S_OK) + hr = IStream_Read(pStm, &header, sizeof(header), &actual_read); /* can't use SUCCEEDED(hr): S_FALSE counts as an error */ if (hr == S_OK && actual_read == sizeof(header) @@ -464,11 +536,14 @@ static HRESULT DataCacheEntry_LoadData(D { IStream* presStream = NULL; HRESULT hres; + ULARGE_INTEGER current_pos; STATSTG streamInfo; void* metafileBits; METAFILEPICT *mfpict; HGLOBAL hmfpict; PresentationDataHeader header; + CLIPFORMAT clipformat; + static const LARGE_INTEGER offset_zero; /* * Open the presentation stream. @@ -491,13 +566,27 @@ static HRESULT DataCacheEntry_LoadData(D * Read the header. */ + hres = read_clipformat(presStream, &clipformat); + if (FAILED(hres)) + { + IStream_Release(presStream); + return hres; + } + hres = IStream_Read( presStream, &header, sizeof(PresentationDataHeader), NULL); + if (hres != S_OK) + { + IStream_Release(presStream); + return E_FAIL; + } + + hres = IStream_Seek(presStream, offset_zero, STREAM_SEEK_CUR, ¤t_pos); - streamInfo.cbSize.QuadPart -= sizeof(PresentationDataHeader); + streamInfo.cbSize.QuadPart -= current_pos.QuadPart; hmfpict = GlobalAlloc(GMEM_MOVEABLE, sizeof(METAFILEPICT)); if (!hmfpict) @@ -586,11 +675,10 @@ static HRESULT DataCacheEntry_Save(DataC if (FAILED(hr)) return hr; - /* custom clipformat */ - if (This->data_cf >= 0xc000) - FIXME("custom clipboard format not serialized properly\n"); - header.unknown1 = -1; - header.clipformat = This->data_cf; + hr = write_clipformat(pres_stream, This->data_cf); + if (FAILED(hr)) + return hr; + if (This->fmtetc.ptd) FIXME("ptd not serialized\n"); header.unknown3 = 4; @@ -1251,10 +1339,15 @@ static HRESULT WINAPI DataCache_Load( &pStm); if (SUCCEEDED(hr)) { - PresentationDataHeader header; - ULONG actual_read; + PresentationDataHeader header; + ULONG actual_read; + CLIPFORMAT clipformat; + + hr = read_clipformat(pStm, &clipformat); - hr = IStream_Read(pStm, &header, sizeof(header), &actual_read); + if (hr == S_OK) + hr = IStream_Read(pStm, &header, sizeof(header), + &actual_read); /* can't use SUCCEEDED(hr): S_FALSE counts as an error */ if (hr == S_OK && actual_read == sizeof(header)) @@ -1262,7 +1355,7 @@ static HRESULT WINAPI DataCache_Load( DataCacheEntry *cache_entry; FORMATETC fmtetc; - fmtetc.cfFormat = header.clipformat; + fmtetc.cfFormat = clipformat; fmtetc.ptd = NULL; /* FIXME */ fmtetc.dwAspect = header.dvAspect; fmtetc.lindex = header.lindex;
1
0
0
0
Dmitry Timoshkov : winedump: Remove a redundant ';'.
by Alexandre Julliard
18 Dec '06
18 Dec '06
Module: wine Branch: master Commit: 1d63675322e10ad8225723187d1af68a4e75b592 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1d63675322e10ad8225723187…
Author: Dmitry Timoshkov <dmitry(a)codeweavers.com> Date: Mon Dec 18 13:46:27 2006 +0800 winedump: Remove a redundant ';'. --- tools/winedump/pe.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/winedump/pe.c b/tools/winedump/pe.c index df07aa9..e05274f 100644 --- a/tools/winedump/pe.c +++ b/tools/winedump/pe.c @@ -412,7 +412,7 @@ void dump_section(const IMAGE_SECTION_HE switch (sectHead->Characteristics & IMAGE_SCN_ALIGN_MASK) { -#define X2(b,s) case b: printf(" " s); break; +#define X2(b,s) case b: printf(" " s); break X2(IMAGE_SCN_ALIGN_1BYTES, "ALIGN_1BYTES"); X2(IMAGE_SCN_ALIGN_2BYTES, "ALIGN_2BYTES"); X2(IMAGE_SCN_ALIGN_4BYTES, "ALIGN_4BYTES");
1
0
0
0
Dmitry Timoshkov : winedump: Fix a couple of typos.
by Alexandre Julliard
18 Dec '06
18 Dec '06
Module: wine Branch: master Commit: c4e7e07a4598a4ffa4882607181a3895265c303d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c4e7e07a4598a4ffa48826071…
Author: Dmitry Timoshkov <dmitry(a)codeweavers.com> Date: Mon Dec 18 13:45:50 2006 +0800 winedump: Fix a couple of typos. --- tools/winedump/pe.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/winedump/pe.c b/tools/winedump/pe.c index 9c25af1..df07aa9 100644 --- a/tools/winedump/pe.c +++ b/tools/winedump/pe.c @@ -608,7 +608,7 @@ static void dump_dir_imported_functions( printf(" offset %08lx %s\n", Offset(importDesc), (const char*)RVA(importDesc->Name, sizeof(DWORD))); printf(" Hint/Name Table: %08X\n", (DWORD)importDesc->u.OriginalFirstThunk); - printf(" TimeDataStamp: %08X (%s)\n", + printf(" TimeDateStamp: %08X (%s)\n", importDesc->TimeDateStamp, get_time_str(importDesc->TimeDateStamp)); printf(" ForwarderChain: %08X\n", importDesc->ForwarderChain); printf(" First thunk RVA: %08X\n", (DWORD)importDesc->FirstThunk); @@ -673,7 +673,7 @@ static void dump_dir_delay_imported_func printf(" grAttrs %08x offset %08lx %s\n", importDesc->grAttrs, Offset(importDesc), use_rva ? (const char *)RVA(importDesc->szName, sizeof(DWORD)) : (char *)importDesc->szName); printf(" Hint/Name Table: %08x\n", importDesc->pINT); - printf(" TimeDataStamp: %08X (%s)\n", + printf(" TimeDateStamp: %08X (%s)\n", importDesc->dwTimeStamp, get_time_str(importDesc->dwTimeStamp)); printf(" Ordn Name\n");
1
0
0
0
Paul Vriens : usp10/tests: Make tests run on win9x and NT4 again.
by Alexandre Julliard
18 Dec '06
18 Dec '06
Module: wine Branch: master Commit: 012861100c24c4cb9770a2bcfa5377c5107330a2 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=012861100c24c4cb9770a2bcf…
Author: Paul Vriens <paul.vriens.wine(a)gmail.com> Date: Sun Dec 17 19:18:41 2006 +0100 usp10/tests: Make tests run on win9x and NT4 again. --- dlls/usp10/tests/usp10.c | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/dlls/usp10/tests/usp10.c b/dlls/usp10/tests/usp10.c index c6ffd8a..dd26492 100644 --- a/dlls/usp10/tests/usp10.c +++ b/dlls/usp10/tests/usp10.c @@ -1237,11 +1237,22 @@ static void test_digit_substitution(void LGRPID_GEORGIAN, LGRPID_ARMENIAN }; + HMODULE hKernel32; + static BOOL (WINAPI * pEnumLanguageGroupLocalesA)(LANGGROUPLOCALE_ENUMPROC,LGRPID,DWORD,LONG_PTR); + + hKernel32 = GetModuleHandleA("kernel32.dll"); + pEnumLanguageGroupLocalesA = (void*)GetProcAddress(hKernel32, "EnumLanguageGroupLocalesA"); + + if (!pEnumLanguageGroupLocalesA) + { + trace("EnumLanguageGroupLocalesA not available on this platform\n"); + return; + } for (i = 0; i < sizeof(groups)/sizeof(groups[0]); i++) { - ret = EnumLanguageGroupLocales(enum_proc, groups[i], 0, 0); - ok(ret, "EnumLanguageGroupLocales failed unexpectedly: 0x%08x\n", GetLastError()); + ret = pEnumLanguageGroupLocalesA(enum_proc, groups[i], 0, 0); + ok(ret, "EnumLanguageGroupLocalesA failed unexpectedly: 0x%08x\n", GetLastError()); } }
1
0
0
0
Paul Vriens : user32/tests: Make sure the tests run on NT4 again.
by Alexandre Julliard
18 Dec '06
18 Dec '06
Module: wine Branch: master Commit: 75414bb4ad38be10c990555153d4efa9cb7cc133 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=75414bb4ad38be10c99055515…
Author: Paul Vriens <paul.vriens.wine(a)gmail.com> Date: Sun Dec 17 13:10:03 2006 +0100 user32/tests: Make sure the tests run on NT4 again. --- dlls/user32/tests/monitor.c | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/dlls/user32/tests/monitor.c b/dlls/user32/tests/monitor.c index de91f44..a4ea8ec 100644 --- a/dlls/user32/tests/monitor.c +++ b/dlls/user32/tests/monitor.c @@ -27,6 +27,8 @@ static HMODULE hdll; static BOOL (WINAPI *pEnumDisplayDevicesA)(LPCSTR,DWORD,LPDISPLAY_DEVICEA,DWORD); static BOOL (WINAPI *pEnumDisplayMonitors)(HDC,LPRECT,MONITORENUMPROC,LPARAM); static BOOL (WINAPI *pGetMonitorInfoA)(HMONITOR,LPMONITORINFO); +static HMONITOR (WINAPI *pMonitorFromPoint)(POINT,DWORD); +static HMONITOR (WINAPI *pMonitorFromWindow)(HWND,DWORD); static void init_function_pointers(void) { @@ -37,6 +39,8 @@ static void init_function_pointers(void) pEnumDisplayDevicesA = (void*)GetProcAddress(hdll, "EnumDisplayDevicesA"); pEnumDisplayMonitors = (void*)GetProcAddress(hdll, "EnumDisplayMonitors"); pGetMonitorInfoA = (void*)GetProcAddress(hdll, "GetMonitorInfoA"); + pMonitorFromPoint = (void*)GetProcAddress(hdll, "MonitorFromPoint"); + pMonitorFromWindow = (void*)GetProcAddress(hdll, "MonitorFromWindow"); } } @@ -179,14 +183,14 @@ static void test_monitors(void) POINT pt; pt.x = pt.y = 0; - primary = MonitorFromPoint( pt, MONITOR_DEFAULTTOPRIMARY ); + primary = pMonitorFromPoint( pt, MONITOR_DEFAULTTOPRIMARY ); ok( primary != 0, "couldn't get primary monitor\n" ); - monitor = MonitorFromWindow( 0, MONITOR_DEFAULTTONULL ); + monitor = pMonitorFromWindow( 0, MONITOR_DEFAULTTONULL ); ok( !monitor, "got %p, should not get a monitor for an invalid window\n", monitor ); - monitor = MonitorFromWindow( 0, MONITOR_DEFAULTTOPRIMARY ); + monitor = pMonitorFromWindow( 0, MONITOR_DEFAULTTOPRIMARY ); ok( monitor == primary, "got %p, should get primary %p for MONITOR_DEFAULTTOPRIMARY\n", monitor, primary ); - monitor = MonitorFromWindow( 0, MONITOR_DEFAULTTONEAREST ); + monitor = pMonitorFromWindow( 0, MONITOR_DEFAULTTONEAREST ); ok( monitor == primary, "got %p, should get primary %p for MONITOR_DEFAULTTONEAREST\n", monitor, primary ); } @@ -197,5 +201,6 @@ START_TEST(monitor) test_enumdisplaydevices(); if (winetest_interactive) test_ChangeDisplaySettingsEx(); - test_monitors(); + if (pMonitorFromPoint && pMonitorFromWindow) + test_monitors(); }
1
0
0
0
Andrew Talbot : server: Cast-qual warnings fix.
by Alexandre Julliard
18 Dec '06
18 Dec '06
Module: wine Branch: master Commit: 53dae9b7f580b7faf471bc577ceae42aecac2817 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=53dae9b7f580b7faf471bc577…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Sat Dec 16 17:43:17 2006 +0000 server: Cast-qual warnings fix. --- server/token.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/server/token.c b/server/token.c index 44e1a90..b84c91b 100644 --- a/server/token.c +++ b/server/token.c @@ -515,7 +515,7 @@ static ACL *create_default_dacl( const S memcpy( sid, &local_system_sid, sizeof(local_system_sid) ); /* GENERIC_ALL for specified user */ - aaa = (ACCESS_ALLOWED_ACE *)((const char *)aaa + aaa->Header.AceSize); + aaa = (ACCESS_ALLOWED_ACE *)((char *)aaa + aaa->Header.AceSize); aaa->Header.AceType = ACCESS_ALLOWED_ACE_TYPE; aaa->Header.AceFlags = 0; aaa->Header.AceSize = (sizeof(ACCESS_ALLOWED_ACE) - sizeof(DWORD)) +
1
0
0
0
Andrew Talbot : server: Cast-qual warnings fix.
by Alexandre Julliard
18 Dec '06
18 Dec '06
Module: wine Branch: master Commit: 76c556ad68e8ba2902f403afbc41f1449ae2dc08 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=76c556ad68e8ba2902f403afb…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Sat Dec 16 17:41:30 2006 +0000 server: Cast-qual warnings fix. --- server/object.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/server/object.c b/server/object.c index 6efe239..63465f2 100644 --- a/server/object.c +++ b/server/object.c @@ -290,14 +290,15 @@ void release_object( void *ptr ) struct object *find_object( const struct namespace *namespace, const struct unicode_str *name, unsigned int attributes ) { - const struct list *list, *p; + const struct list *list; + struct list *p; if (!name || !name->len) return NULL; list = &namespace->names[ get_name_hash( namespace, name->str, name->len ) ]; LIST_FOR_EACH( p, list ) { - const struct object_name *ptr = LIST_ENTRY( p, const struct object_name, entry ); + const struct object_name *ptr = LIST_ENTRY( p, struct object_name, entry ); if (ptr->len != name->len) continue; if (attributes & OBJ_CASE_INSENSITIVE) {
1
0
0
0
Alexandre Julliard : msvcrt: Define __CxxLongjmpUnwind for i386 only.
by Alexandre Julliard
18 Dec '06
18 Dec '06
Module: wine Branch: master Commit: 0689e9ea0589ff9df4db8affba589c79629d5010 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0689e9ea0589ff9df4db8affb…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sat Dec 16 17:37:20 2006 +0100 msvcrt: Define __CxxLongjmpUnwind for i386 only. --- dlls/msvcrt/cppexcept.c | 29 +++++++++++++++-------------- dlls/msvcrt/msvcrt.spec | 2 +- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/dlls/msvcrt/cppexcept.c b/dlls/msvcrt/cppexcept.c index e556353..ec1f364 100644 --- a/dlls/msvcrt/cppexcept.c +++ b/dlls/msvcrt/cppexcept.c @@ -424,6 +424,21 @@ __ASM_GLOBAL_FUNC( __CxxFrameHandler, "add $28,%esp\n\t" "ret" ); + +/********************************************************************* + * __CxxLongjmpUnwind (MSVCRT.@) + * + * Callback meant to be used as UnwindFunc for setjmp/longjmp. + */ +void __stdcall __CxxLongjmpUnwind( const struct MSVCRT___JUMP_BUFFER *buf ) +{ + cxx_exception_frame *frame = (cxx_exception_frame *)buf->Registration; + const cxx_function_descr *descr = (const cxx_function_descr *)buf->UnwindData[0]; + + TRACE( "unwinding frame %p descr %p trylevel %ld\n", frame, descr, buf->TryLevel ); + cxx_local_unwind( frame, descr, buf->TryLevel ); +} + #endif /* __i386__ */ /********************************************************************* @@ -469,17 +484,3 @@ unsigned int CDECL __CxxQueryExceptionSi { return sizeof(cxx_exception_type); } - -/********************************************************************* - * __CxxLongjmpUnwind (MSVCRT.@) - * - * Callback meant to be used as UnwindFunc for setjmp/longjmp. - */ -void __stdcall __CxxLongjmpUnwind( const struct MSVCRT___JUMP_BUFFER *buf ) -{ - cxx_exception_frame *frame = (cxx_exception_frame *)buf->Registration; - const cxx_function_descr *descr = (const cxx_function_descr *)buf->UnwindData[0]; - - TRACE( "unwinding frame %p descr %p trylevel %ld\n", frame, descr, buf->TryLevel ); - cxx_local_unwind( frame, descr, buf->TryLevel ); -} diff --git a/dlls/msvcrt/msvcrt.spec b/dlls/msvcrt/msvcrt.spec index f236c24..59e21f6 100644 --- a/dlls/msvcrt/msvcrt.spec +++ b/dlls/msvcrt/msvcrt.spec @@ -76,7 +76,7 @@ @ cdecl _Strftime(str long str ptr ptr) @ cdecl _XcptFilter(long ptr) @ cdecl -i386 -norelay __CxxFrameHandler(ptr ptr ptr ptr) -@ stdcall __CxxLongjmpUnwind(ptr) +@ stdcall -i386 __CxxLongjmpUnwind(ptr) @ cdecl __RTCastToVoid(ptr) MSVCRT___RTCastToVoid @ cdecl __RTDynamicCast(ptr long ptr ptr long) MSVCRT___RTDynamicCast @ cdecl __RTtypeid(ptr) MSVCRT___RTtypeid
1
0
0
0
Andrew Talbot : winhelp: Cast-qual warnings fix.
by Alexandre Julliard
18 Dec '06
18 Dec '06
Module: wine Branch: master Commit: bc718eec9e247fe293d32ab2d9edc28808629ffa URL:
http://source.winehq.org/git/wine.git/?a=commit;h=bc718eec9e247fe293d32ab2d…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Sat Dec 16 14:52:36 2006 +0000 winhelp: Cast-qual warnings fix. --- programs/winhelp/hlpfile.c | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/programs/winhelp/hlpfile.c b/programs/winhelp/hlpfile.c index e95dfdf..59f55d1 100644 --- a/programs/winhelp/hlpfile.c +++ b/programs/winhelp/hlpfile.c @@ -452,10 +452,12 @@ static BOOL HLPFILE_AddPage(HLPFILE *hlp while (ptr < page->lpszTitle + titlesize) { unsigned len = strlen(ptr); + char* macro_str; + WINE_TRACE("macro: %s\n", ptr); macro = HeapAlloc(GetProcessHeap(), 0, sizeof(HLPFILE_MACRO) + len + 1); - macro->lpszMacro = (char*)(macro + 1); - memcpy((char*)macro->lpszMacro, ptr, len + 1); + macro->lpszMacro = macro_str = (char*)(macro + 1); + memcpy(macro_str, ptr, len + 1); /* FIXME: shall we really link macro in reverse order ?? * may produce strange results when played at page opening */ @@ -822,6 +824,7 @@ static HLPFILE_LINK* HLPFILE_Alloc BOOL clrChange, unsigned wnd) { HLPFILE_LINK* link; + char* link_str; /* FIXME: should build a string table for the attributes.link.lpszPath * they are reallocated for each link @@ -830,8 +833,8 @@ static HLPFILE_LINK* HLPFILE_Alloc if (!link) return NULL; link->cookie = cookie; - link->lpszString = (char*)link + sizeof(HLPFILE_LINK); - strcpy((char*)link->lpszString, str); + link->lpszString = link_str = (char*)link + sizeof(HLPFILE_LINK); + strcpy(link_str, str); link->lHash = hash; link->bClrChange = clrChange ? 1 : 0; link->window = wnd;
1
0
0
0
Andrew Talbot : winecfg: Cast-qual warning fix.
by Alexandre Julliard
18 Dec '06
18 Dec '06
Module: wine Branch: master Commit: e181d5d0e2a3a45bd490b248c84fc2de0ecf9a32 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e181d5d0e2a3a45bd490b248c…
Author: Andrew Talbot <Andrew.Talbot(a)talbotville.com> Date: Sat Dec 16 14:25:11 2006 +0000 winecfg: Cast-qual warning fix. --- programs/winecfg/theme.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/programs/winecfg/theme.c b/programs/winecfg/theme.c index 7410a0d..f34d1ca 100644 --- a/programs/winecfg/theme.c +++ b/programs/winecfg/theme.c @@ -59,9 +59,9 @@ typedef BOOL (CALLBACK *EnumThemeProc)(L LPCWSTR pszToolTip, LPVOID lpReserved2, LPVOID lpData); -HRESULT WINAPI EnumThemeColors (LPWSTR pszThemeFileName, LPWSTR pszSizeName, +HRESULT WINAPI EnumThemeColors (LPCWSTR pszThemeFileName, LPWSTR pszSizeName, DWORD dwColorNum, PTHEMENAMES pszColorNames); -HRESULT WINAPI EnumThemeSizes (LPWSTR pszThemeFileName, LPWSTR pszColorName, +HRESULT WINAPI EnumThemeSizes (LPCWSTR pszThemeFileName, LPWSTR pszColorName, DWORD dwSizeNum, PTHEMENAMES pszSizeNames); HRESULT WINAPI ApplyTheme (HTHEMEFILE hThemeFile, char* unknown, HWND hWnd); HRESULT WINAPI OpenThemeFile (LPCWSTR pszThemeFileName, LPCWSTR pszColorName, @@ -171,7 +171,7 @@ static void free_theme_files(void) themeFilesCount = 0; } -typedef HRESULT (WINAPI * EnumTheme) (LPWSTR, LPWSTR, DWORD, PTHEMENAMES); +typedef HRESULT (WINAPI * EnumTheme) (LPCWSTR, LPWSTR, DWORD, PTHEMENAMES); /* fill a string list with either colors or sizes of a theme */ static void fill_theme_string_array (const WCHAR* filename, @@ -183,7 +183,7 @@ static void fill_theme_string_array (con WINE_TRACE ("%s %p %p\n", wine_dbgstr_w (filename), wdsa, enumTheme); - while (SUCCEEDED (enumTheme ((WCHAR*)filename, NULL, index++, &names))) + while (SUCCEEDED (enumTheme (filename, NULL, index++, &names))) { WINE_TRACE ("%s: %s\n", wine_dbgstr_w (names.szName), wine_dbgstr_w (names.szDisplayName));
1
0
0
0
← Newer
1
...
27
28
29
30
31
32
33
...
72
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
Results per page:
10
25
50
100
200