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
Mike McCormack : wineboot: Use WIN32_LEAN_AND_MEAN.
by Alexandre Julliard
16 Jan '06
16 Jan '06
Module: wine Branch: refs/heads/master Commit: cb6983fb304756d914565c8cb7d86a68be8f7c2c URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=cb6983fb304756d914565c8…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Mon Jan 16 20:41:09 2006 +0100 wineboot: Use WIN32_LEAN_AND_MEAN. Use HeapAlloc/HeapFree instead of malloc/free. --- programs/wineboot/wineboot.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c index f56143a..4e9270e 100644 --- a/programs/wineboot/wineboot.c +++ b/programs/wineboot/wineboot.c @@ -51,6 +51,8 @@ * processed (requires translations from Unicode to Ansi). */ +#define WIN32_LEAN_AND_MEAN + #include <stdio.h> #include <windows.h> #include <wine/debug.h> @@ -240,7 +242,7 @@ static BOOL pendingRename(void) goto end; } - buffer=malloc( dataLength ); + buffer=HeapAlloc( GetProcessHeap(),0,dataLength ); if( buffer==NULL ) { WINE_ERR("Couldn't allocate %lu bytes for the value\n", dataLength ); @@ -325,7 +327,7 @@ static BOOL pendingRename(void) end: if( buffer!=NULL ) - free(buffer); + HeapFree(GetProcessHeap(), 0, buffer); if( hSession!=NULL ) RegCloseKey( hSession ); @@ -460,7 +462,7 @@ static BOOL ProcessRunKeys( HKEY hkRoot, goto end; } - if( (szCmdLine=malloc(nMaxCmdLine))==NULL ) + if( (szCmdLine=HeapAlloc(GetProcessHeap(),0,nMaxCmdLine))==NULL ) { WINE_ERR("Couldn't allocate memory for the commands to be executed\n"); @@ -468,7 +470,7 @@ static BOOL ProcessRunKeys( HKEY hkRoot, goto end; } - if( (szValue=malloc((++nMaxValue)*sizeof(*szValue)))==NULL ) + if( (szValue=HeapAlloc(GetProcessHeap(),0,(++nMaxValue)*sizeof(*szValue)))==NULL ) { WINE_ERR("Couldn't allocate memory for the value names\n");
1
0
0
0
Mike McCormack : kernel32: Define SCS_64BIT_BINARY.
by Alexandre Julliard
16 Jan '06
16 Jan '06
Module: wine Branch: refs/heads/master Commit: 91199249ecb18d9e8729535464145c0727dcd9ae URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=91199249ecb18d9e8729535…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Mon Jan 16 20:40:33 2006 +0100 kernel32: Define SCS_64BIT_BINARY. --- include/winbase.h | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/include/winbase.h b/include/winbase.h index f574085..b6d98cc 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -1171,6 +1171,7 @@ typedef struct _WIN32_STREAM_ID { #define SCS_PIF_BINARY 3 #define SCS_POSIX_BINARY 4 #define SCS_OS216_BINARY 5 +#define SCS_64BIT_BINARY 6 /* flags for DefineDosDevice */ #define DDD_RAW_TARGET_PATH 0x00000001
1
0
0
0
Mike McCormack : ntdll: Use the NTAPI definition of EXCEPTION_ACCESS_VIOLATION.
by Alexandre Julliard
16 Jan '06
16 Jan '06
Module: wine Branch: refs/heads/master Commit: a3348cf4a0179a4d2097d59c27096d5f9d250fe9 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=a3348cf4a0179a4d2097d59…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Mon Jan 16 20:40:25 2006 +0100 ntdll: Use the NTAPI definition of EXCEPTION_ACCESS_VIOLATION. --- dlls/ntdll/exception.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ntdll/exception.c b/dlls/ntdll/exception.c index d4c4b32..c1677b6 100644 --- a/dlls/ntdll/exception.c +++ b/dlls/ntdll/exception.c @@ -568,7 +568,7 @@ DWORD __wine_exception_handler( EXCEPTIO if (wine_frame->u.filter == (void *)1) /* special hack for page faults */ { - if (record->ExceptionCode != EXCEPTION_ACCESS_VIOLATION) + if (record->ExceptionCode != STATUS_ACCESS_VIOLATION) return ExceptionContinueSearch; } else if (wine_frame->u.filter)
1
0
0
0
Mike McCormack : ntdll: Add a stub implementation of NtNotifyChangeDirectoryFile.
by Alexandre Julliard
16 Jan '06
16 Jan '06
Module: wine Branch: refs/heads/master Commit: 0c728255a4f0188acf379aa750437b6c3cd11d87 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=0c728255a4f0188acf379aa…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Mon Jan 16 20:40:11 2006 +0100 ntdll: Add a stub implementation of NtNotifyChangeDirectoryFile. --- dlls/ntdll/directory.c | 15 +++++++++++++++ dlls/ntdll/ntdll.spec | 2 +- 2 files changed, 16 insertions(+), 1 deletions(-) diff --git a/dlls/ntdll/directory.c b/dlls/ntdll/directory.c index 291e2a8..a86b9a4 100644 --- a/dlls/ntdll/directory.c +++ b/dlls/ntdll/directory.c @@ -1777,3 +1777,18 @@ done: RtlReleasePebLock(); return status; } + +/****************************************************************************** + * NtNotifyChangeDirectoryFile [NTDLL.@] + */ +NTSTATUS WINAPI +NtNotifyChangeDirectoryFile( HANDLE FileHandle, HANDLE Event, + PIO_APC_ROUTINE ApcRoutine, PVOID ApcContext, + PIO_STATUS_BLOCK IoStatusBlock, PVOID Buffer, + ULONG BufferSize, ULONG CompletionFilter, BOOLEAN WatchTree ) +{ + FIXME("%p %p %p %p %p %p %lu %lu %d\n", + FileHandle, Event, ApcRoutine, ApcContext, IoStatusBlock, + Buffer, BufferSize, CompletionFilter, WatchTree ); + return STATUS_NOT_IMPLEMENTED; +} diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec index 22fe7da..433ca6e 100644 --- a/dlls/ntdll/ntdll.spec +++ b/dlls/ntdll/ntdll.spec @@ -200,7 +200,7 @@ # @ stub NtMapUserPhysicalPagesScatter @ stdcall NtMapViewOfSection(long long ptr long long ptr ptr long long long) # @ stub NtModifyBootEntry -@ stub NtNotifyChangeDirectoryFile +@ stdcall NtNotifyChangeDirectoryFile(long long ptr ptr ptr ptr long long long) @ stdcall NtNotifyChangeKey(long long ptr ptr ptr long long ptr long long) # @ stub NtNotifyChangeMultipleKeys @ stdcall NtOpenDirectoryObject(long long long)
1
0
0
0
Robert Reif : dsound: Make dumpCooperativeLevel global.
by Alexandre Julliard
16 Jan '06
16 Jan '06
Module: wine Branch: refs/heads/master Commit: eb919b52636fcc18728c300c45b624dcc7d9ca9e URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=eb919b52636fcc18728c300…
Author: Robert Reif <reif(a)earthlink.net> Date: Mon Jan 16 20:39:52 2006 +0100 dsound: Make dumpCooperativeLevel global. Remove extern from some function prototypes. --- dlls/dsound/dsound.c | 2 +- dlls/dsound/dsound_private.h | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/dlls/dsound/dsound.c b/dlls/dsound/dsound.c index 1adb347..6645663 100644 --- a/dlls/dsound/dsound.c +++ b/dlls/dsound/dsound.c @@ -45,7 +45,7 @@ static ULONG WINAPI IDirectSound8_IUnkno static ULONG WINAPI IDirectSound8_IDirectSound_AddRef(LPDIRECTSOUND iface); static ULONG WINAPI IDirectSound8_IDirectSound8_AddRef(LPDIRECTSOUND8 iface); -static const char * dumpCooperativeLevel(DWORD level) +const char * dumpCooperativeLevel(DWORD level) { static char unknown[32]; #define LE(x) case x: return #x diff --git a/dlls/dsound/dsound_private.h b/dlls/dsound/dsound_private.h index 89b00f1..efaa864 100644 --- a/dlls/dsound/dsound_private.h +++ b/dlls/dsound/dsound_private.h @@ -491,9 +491,8 @@ struct IClassFactoryImpl extern IClassFactoryImpl DSOUND_CAPTURE_CF; extern IClassFactoryImpl DSOUND_FULLDUPLEX_CF; -void DSOUND_RecalcVolPan(PDSVOLUMEPAN volpan); -void DSOUND_AmpFactorToVolPan(PDSVOLUMEPAN volpan); -void DSOUND_RecalcFormat(IDirectSoundBufferImpl *dsb); +/******************************************************************************* + */ /* dsound.c */ @@ -520,6 +519,9 @@ void DSOUND_ForceRemix(IDirectSoundBuffe void DSOUND_MixCancelAt(IDirectSoundBufferImpl *dsb, DWORD buf_writepos); void DSOUND_WaveQueue(DirectSoundDevice *device, DWORD mixq); void DSOUND_PerformMix(DirectSoundDevice *device); +void DSOUND_RecalcVolPan(PDSVOLUMEPAN volpan); +void DSOUND_AmpFactorToVolPan(PDSVOLUMEPAN volpan); +void DSOUND_RecalcFormat(IDirectSoundBufferImpl *dsb); void CALLBACK DSOUND_timer(UINT timerID, UINT msg, DWORD dwUser, DWORD dw1, DWORD dw2); void CALLBACK DSOUND_callback(HWAVEOUT hwo, UINT msg, DWORD dwUser, DWORD dw1, DWORD dw2); @@ -555,6 +557,7 @@ extern GUID DSOUND_renderer_guids[MAXWAV extern DirectSoundCaptureDevice * DSOUND_capture[MAXWAVEDRIVERS]; extern GUID DSOUND_capture_guids[MAXWAVEDRIVERS]; -extern HRESULT mmErr(UINT err); -extern void setup_dsound_options(void); -extern const char * get_device_id(LPCGUID pGuid); +HRESULT mmErr(UINT err); +void setup_dsound_options(void); +const char * get_device_id(LPCGUID pGuid); +const char * dumpCooperativeLevel(DWORD level);
1
0
0
0
Robert Reif : dsound: Make some capture functions global.
by Alexandre Julliard
16 Jan '06
16 Jan '06
Module: wine Branch: refs/heads/master Commit: 34ec3a633abb3391325da4cd6824d193ad1cf684 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=34ec3a633abb3391325da4c…
Author: Robert Reif <reif(a)earthlink.net> Date: Mon Jan 16 20:39:14 2006 +0100 dsound: Make some capture functions global. --- dlls/dsound/capture.c | 9 +++------ dlls/dsound/dsound_private.h | 14 ++++++++++++++ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/dlls/dsound/capture.c b/dlls/dsound/capture.c index 06d0f3a..8b42582 100644 --- a/dlls/dsound/capture.c +++ b/dlls/dsound/capture.c @@ -447,8 +447,7 @@ IDirectSoundCaptureImpl_Release( LPDIREC return ref; } -static HRESULT WINAPI -IDirectSoundCaptureImpl_CreateCaptureBuffer( +HRESULT WINAPI IDirectSoundCaptureImpl_CreateCaptureBuffer( LPDIRECTSOUNDCAPTURE iface, LPCDSCBUFFERDESC lpcDSCBufferDesc, LPDIRECTSOUNDCAPTUREBUFFER* lplpDSCaptureBuffer, @@ -494,8 +493,7 @@ IDirectSoundCaptureImpl_CreateCaptureBuf return hr; } -static HRESULT WINAPI -IDirectSoundCaptureImpl_GetCaps( +HRESULT WINAPI IDirectSoundCaptureImpl_GetCaps( LPDIRECTSOUNDCAPTURE iface, LPDSCCAPS lpDSCCaps ) { @@ -528,8 +526,7 @@ IDirectSoundCaptureImpl_GetCaps( return DS_OK; } -static HRESULT WINAPI -IDirectSoundCaptureImpl_Initialize( +HRESULT WINAPI IDirectSoundCaptureImpl_Initialize( LPDIRECTSOUNDCAPTURE iface, LPCGUID lpcGUID ) { diff --git a/dlls/dsound/dsound_private.h b/dlls/dsound/dsound_private.h index 77070ec..89b00f1 100644 --- a/dlls/dsound/dsound_private.h +++ b/dlls/dsound/dsound_private.h @@ -527,6 +527,20 @@ void CALLBACK DSOUND_callback(HWAVEOUT h void DSOUND_Calc3DBuffer(IDirectSoundBufferImpl *dsb); +/* capture.c */ + +HRESULT WINAPI IDirectSoundCaptureImpl_CreateCaptureBuffer( + LPDIRECTSOUNDCAPTURE iface, + LPCDSCBUFFERDESC lpcDSCBufferDesc, + LPDIRECTSOUNDCAPTUREBUFFER* lplpDSCaptureBuffer, + LPUNKNOWN pUnk); +HRESULT WINAPI IDirectSoundCaptureImpl_GetCaps( + LPDIRECTSOUNDCAPTURE iface, + LPDSCCAPS lpDSCCaps); +HRESULT WINAPI IDirectSoundCaptureImpl_Initialize( + LPDIRECTSOUNDCAPTURE iface, + LPCGUID lpcGUID); + #define STATE_STOPPED 0 #define STATE_STARTING 1 #define STATE_PLAYING 2
1
0
0
0
Mike McCormack : make_ctests: Declare WIN32_LEAN_AND_MEAN when compiling testlist.c.
by Alexandre Julliard
16 Jan '06
16 Jan '06
Module: wine Branch: refs/heads/master Commit: 48cbfd7e4c003bb93c02db260ad7b11b8b2550da URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=48cbfd7e4c003bb93c02db2…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Mon Jan 16 20:38:53 2006 +0100 make_ctests: Declare WIN32_LEAN_AND_MEAN when compiling testlist.c. --- tools/make_ctests.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/tools/make_ctests.c b/tools/make_ctests.c index 3dd99df..de3ed0e 100644 --- a/tools/make_ctests.c +++ b/tools/make_ctests.c @@ -117,6 +117,7 @@ int main( int argc, const char** argv ) fprintf( out, "/* Automatically generated file; DO NOT EDIT!! */\n" "\n" + "#define WIN32_LEAN_AND_MEAN\n" "#include <windows.h>\n\n" "#define STANDALONE\n" "#include \"wine/test.h\"\n\n" );
1
0
0
0
Mike McCormack : kernel32: Add FILE_NOTIFY_INFORMATION.
by Alexandre Julliard
16 Jan '06
16 Jan '06
Module: wine Branch: refs/heads/master Commit: b8e5e0168a70432e6991289643254074b103b42b URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=b8e5e0168a70432e6991289…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Mon Jan 16 20:38:39 2006 +0100 kernel32: Add FILE_NOTIFY_INFORMATION. --- include/winnt.h | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/include/winnt.h b/include/winnt.h index 9efe87b..f55203d 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -3851,6 +3851,13 @@ typedef union _FILE_SEGMENT_ELEMENT { ULONGLONG Alignment; } FILE_SEGMENT_ELEMENT, *PFILE_SEGMENT_ELEMENT; +typedef struct _FILE_NOTIFY_INFORMATION { + DWORD NextEntryOffset; + DWORD Action; + DWORD FileNameLength; + WCHAR FileName[1]; +} FILE_NOTIFY_INFORMATION, *PFILE_NOTIFY_INFORMATION; + /* ----------------------------- begin registry ----------------------------- */ /* Registry security values */
1
0
0
0
Mike McCormack : msi: Eliminate a fixed length buffer.
by Alexandre Julliard
16 Jan '06
16 Jan '06
Module: wine Branch: refs/heads/master Commit: 477bce38dc5b0efeb55b5cc407b3ff32eed19c3f URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=477bce38dc5b0efeb55b5cc…
Author: Mike McCormack <mike(a)codeweavers.com> Date: Mon Jan 16 20:38:28 2006 +0100 msi: Eliminate a fixed length buffer. --- dlls/msi/action.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/dlls/msi/action.c b/dlls/msi/action.c index 6f4ce41..61dd099 100644 --- a/dlls/msi/action.c +++ b/dlls/msi/action.c @@ -2849,10 +2849,8 @@ static UINT ACTION_RegisterTypeLibraries static UINT ITERATE_CreateShortcuts(MSIRECORD *row, LPVOID param) { MSIPACKAGE *package = (MSIPACKAGE*)param; - LPWSTR target_file, target_folder; + LPWSTR target_file, target_folder, filename; LPCWSTR buffer; - WCHAR filename[0x100]; - DWORD sz; MSICOMPONENT *comp; static const WCHAR szlnk[]={'.','l','n','k',0}; IShellLinkW *sl; @@ -2899,13 +2897,13 @@ static UINT ITERATE_CreateShortcuts(MSIR /* may be needed because of a bug somehwere else */ create_full_pathW(target_folder); - sz = 0x100; - MSI_RecordGetStringW(row,3,filename,&sz); + filename = msi_dup_record_field( row, 3 ); reduce_to_longfilename(filename); if (!strchrW(filename,'.') || strcmpiW(strchrW(filename,'.'),szlnk)) strcatW(filename,szlnk); target_file = build_directory_name(2, target_folder, filename); msi_free(target_folder); + msi_free(filename); buffer = MSI_RecordGetString(row,5); if (strchrW(buffer,'['))
1
0
0
0
Hans Leidekker : gdi: better implementation for GetCharABCWidthsFloat{A, W}.
by Alexandre Julliard
16 Jan '06
16 Jan '06
Module: wine Branch: refs/heads/master Commit: f8125a98d8dbd1979021d69df6ebe701fe6c3e39 URL:
http://source.winehq.org/git/?p=wine.git;a=commit;h=f8125a98d8dbd1979021d69…
Author: Hans Leidekker <hans(a)it.vu.nl> Date: Mon Jan 16 20:38:17 2006 +0100 gdi: better implementation for GetCharABCWidthsFloat{A,W}. --- dlls/gdi/font.c | 82 ++++++++++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 72 insertions(+), 10 deletions(-) diff --git a/dlls/gdi/font.c b/dlls/gdi/font.c index e6a00a3..ffebd7e 100644 --- a/dlls/gdi/font.c +++ b/dlls/gdi/font.c @@ -2785,22 +2785,84 @@ GetCharacterPlacementW( /************************************************************************* * GetCharABCWidthsFloatA [GDI32.@] + * + * See GetCharABCWidthsFloatW. */ -BOOL WINAPI GetCharABCWidthsFloatA(HDC hdc, UINT iFirstChar, UINT iLastChar, - LPABCFLOAT lpABCF) +BOOL WINAPI GetCharABCWidthsFloatA( HDC hdc, UINT first, UINT last, LPABCFLOAT abcf ) { - FIXME_(gdi)("GetCharABCWidthsFloatA, stub\n"); - return 0; + INT i, wlen, count = (INT)(last - first + 1); + LPSTR str; + LPWSTR wstr; + BOOL ret = TRUE; + + if (count <= 0) return FALSE; + + str = HeapAlloc(GetProcessHeap(), 0, count); + + for(i = 0; i < count; i++) + str[i] = (BYTE)(first + i); + + wstr = FONT_mbtowc( hdc, str, count, &wlen, NULL ); + + for (i = 0; i < wlen; i++) + { + if (!GetCharABCWidthsFloatW( hdc, wstr[i], wstr[i], abcf )) + { + ret = FALSE; + break; + } + abcf++; + } + + HeapFree( GetProcessHeap(), 0, str ); + HeapFree( GetProcessHeap(), 0, wstr ); + + return ret; } /************************************************************************* * GetCharABCWidthsFloatW [GDI32.@] - */ -BOOL WINAPI GetCharABCWidthsFloatW(HDC hdc, UINT iFirstChar, - UINT iLastChar, LPABCFLOAT lpABCF) -{ - FIXME_(gdi)("GetCharABCWidthsFloatW, stub\n"); - return 0; + * + * Retrieves widths of a range of characters. + * + * PARAMS + * hdc [I] Handle to device context. + * first [I] First character in range to query. + * last [I] Last character in range to query. + * abcf [O] Array of LPABCFLOAT structures. + * + * RETURNS + * Success: TRUE + * Failure: FALSE + * + * BUGS + * Only works with TrueType fonts. It also doesn't return real + * floats but converted integers because it's implemented on + * top of GetCharABCWidthsW. + */ +BOOL WINAPI GetCharABCWidthsFloatW( HDC hdc, UINT first, UINT last, LPABCFLOAT abcf ) +{ + ABC *abc; + unsigned int i, size = sizeof(ABC) * (last - first + 1); + BOOL ret; + + TRACE("%p, %d, %d, %p - partial stub\n", hdc, first, last, abcf); + + abc = HeapAlloc( GetProcessHeap(), 0, size ); + if (!abc) return FALSE; + + ret = GetCharABCWidthsW( hdc, first, last, abc ); + if (ret == TRUE) + { + for (i = first; i <= last; i++, abc++, abcf++) + { + abcf->abcfA = abc->abcA; + abcf->abcfB = abc->abcB; + abcf->abcfC = abc->abcC; + } + } + HeapFree( GetProcessHeap(), 0, abc ); + return ret; } /*************************************************************************
1
0
0
0
← Newer
1
...
31
32
33
34
35
36
37
...
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