winehq.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
February
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
January
2003
December
November
October
September
August
July
June
May
April
March
February
January
2002
December
November
October
September
August
July
June
May
April
March
February
January
2001
December
November
October
September
August
July
June
May
April
March
February
List overview
wine-commits
September 2007
----- 2025 -----
February 2025
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
----- 2003 -----
December 2003
November 2003
October 2003
September 2003
August 2003
July 2003
June 2003
May 2003
April 2003
March 2003
February 2003
January 2003
----- 2002 -----
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002
----- 2001 -----
December 2001
November 2001
October 2001
September 2001
August 2001
July 2001
June 2001
May 2001
April 2001
March 2001
February 2001
wine-commits@winehq.org
7 participants
787 discussions
Start a n
N
ew thread
Francois Gouget : includes: Make headers C++ compatible.
by Alexandre Julliard
27 Sep '07
27 Sep '07
Module: wine Branch: master Commit: 4b340fff6fc5ab2ac9e249a993d402e20570b8ca URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4b340fff6fc5ab2ac9e249a99…
Author: Francois Gouget <fgouget(a)free.fr> Date: Thu Sep 27 18:50:21 2007 +0200 includes: Make headers C++ compatible. --- include/appmgmt.h | 9 +++++++++ include/cfgmgr32.h | 9 +++++++++ include/evntrace.h | 8 ++++++++ include/icmpapi.h | 9 +++++++++ include/msiquery.h | 9 +++++++++ include/powrprof.h | 9 +++++++++ include/rpcdcep.h | 8 ++++++++ include/rpcproxy.h | 8 ++++++++ include/setupapi.h | 8 ++++++++ include/winnetwk.h | 7 +++++++ 10 files changed, 84 insertions(+), 0 deletions(-) diff --git a/include/appmgmt.h b/include/appmgmt.h index 5cc262f..385f81a 100644 --- a/include/appmgmt.h +++ b/include/appmgmt.h @@ -39,7 +39,16 @@ typedef struct _MANAGEDAPPLICATION BOOL bInstalled; } MANAGEDAPPLICATION, *PMANAGEDAPPLICATION; + +#ifdef __cplusplus +extern "C" { +#endif + DWORD WINAPI CommandLineFromMsiDescriptor(WCHAR*,WCHAR*,DWORD*); DWORD WINAPI GetManagedApplications(GUID*,DWORD,DWORD,LPDWORD,PMANAGEDAPPLICATION*); +#ifdef __cplusplus +} +#endif + #endif /* _APPMGMT_H */ diff --git a/include/cfgmgr32.h b/include/cfgmgr32.h index c5a4a25..3214c43 100644 --- a/include/cfgmgr32.h +++ b/include/cfgmgr32.h @@ -27,8 +27,17 @@ typedef DWORD CONFIGRET; #define MAX_GUID_STRING_LEN 39 #define MAX_PROFILE_LEN 80 + +#ifdef __cplusplus +extern "C" { +#endif + CONFIGRET WINAPI CM_Get_Device_ID_ListA( PCSTR, PCHAR, ULONG, ULONG ); CONFIGRET WINAPI CM_Get_Device_ID_ListW( PCWSTR, PWCHAR, ULONG, ULONG ); #define CM_Get_Device_ID_List WINELIB_NAME_AW(CM_Get_Device_ID_List) +#ifdef __cplusplus +} +#endif + #endif /* _CFGMGR32_H_ */ diff --git a/include/evntrace.h b/include/evntrace.h index c12b716..093696b 100644 --- a/include/evntrace.h +++ b/include/evntrace.h @@ -21,6 +21,10 @@ #include <guiddef.h> +#ifdef __cplusplus +extern "C" { +#endif + typedef ULONG64 TRACEHANDLE, *PTRACEHANDLE; struct _EVENT_TRACE_LOGFILEA; @@ -178,4 +182,8 @@ ULONG WINAPI RegisterTraceGuidsA(WMIDPREQUEST,PVOID,LPCGUID,ULONG,PTRACE_GUID_RE ULONG WINAPI RegisterTraceGuidsW(WMIDPREQUEST,PVOID,LPCGUID,ULONG,PTRACE_GUID_REGISTRATION,LPCWSTR,LPCWSTR,PTRACEHANDLE); #define RegisterTraceGuids WINELIB_NAME_AW(RegisterTraceGuids) +#ifdef __cplusplus +} +#endif + #endif /* _EVNTRACE_ */ diff --git a/include/icmpapi.h b/include/icmpapi.h index 8dfde8e..102851a 100644 --- a/include/icmpapi.h +++ b/include/icmpapi.h @@ -21,6 +21,11 @@ #ifndef __WINE_ICMPAPI_H #define __WINE_ICMPAPI_H +#ifdef __cplusplus +extern "C" { +#endif + + HANDLE WINAPI IcmpCreateFile( VOID ); @@ -41,4 +46,8 @@ DWORD WINAPI IcmpSendEcho( ); +#ifdef __cplusplus +} +#endif + #endif /* __WINE_ICMPAPI_H */ diff --git a/include/msiquery.h b/include/msiquery.h index 67205c9..1c52a76 100644 --- a/include/msiquery.h +++ b/include/msiquery.h @@ -142,6 +142,11 @@ typedef enum tagMSIDBSTATE MSIDBSTATE_WRITE = 1 } MSIDBSTATE; + +#ifdef __cplusplus +extern "C" { +#endif + /* view manipulation */ UINT WINAPI MsiViewFetch(MSIHANDLE,MSIHANDLE*); UINT WINAPI MsiViewExecute(MSIHANDLE,MSIHANDLE); @@ -307,4 +312,8 @@ UINT WINAPI MsiSetInstallLevel(MSIHANDLE, int); MSIHANDLE WINAPI MsiGetLastErrorRecord(void); +#ifdef __cplusplus +} +#endif + #endif /* __WINE_MSIQUERY_H */ diff --git a/include/powrprof.h b/include/powrprof.h index ea47b8a..5fed4ae 100644 --- a/include/powrprof.h +++ b/include/powrprof.h @@ -109,6 +109,11 @@ typedef struct _POWER_POLICY { } POWER_POLICY, *PPOWER_POLICY; + +#ifdef __cplusplus +extern "C" { +#endif + typedef BOOLEAN (CALLBACK* PWRSCHEMESENUMPROC)(UINT, DWORD, LPWSTR, DWORD, LPWSTR, PPOWER_POLICY, LPARAM); NTSTATUS WINAPI CallNtPowerInformation(POWER_INFORMATION_LEVEL, PVOID, ULONG, PVOID, ULONG); @@ -132,4 +137,8 @@ BOOLEAN WINAPI WriteGlobalPwrPolicy(PGLOBAL_POWER_POLICY); BOOLEAN WINAPI WriteProcessorPwrScheme(UINT, PMACHINE_PROCESSOR_POWER_POLICY); BOOLEAN WINAPI WritePwrScheme(PUINT, LPWSTR, LPWSTR, PPOWER_POLICY); +#ifdef __cplusplus +} +#endif + #endif /* _POWRPROF_H */ diff --git a/include/rpcdcep.h b/include/rpcdcep.h index 6c3f41f..944070f 100644 --- a/include/rpcdcep.h +++ b/include/rpcdcep.h @@ -19,6 +19,10 @@ #ifndef __WINE_RPCDCEP_H #define __WINE_RPCDCEP_H +#ifdef __cplusplus +extern "C" { +#endif + typedef struct _RPC_VERSION { unsigned short MajorVersion; unsigned short MinorVersion; @@ -182,4 +186,8 @@ RPCRTAPI UINT RPC_ENTRY #endif +#ifdef __cplusplus +} +#endif + #endif /*__WINE_RPCDCEP_H */ diff --git a/include/rpcproxy.h b/include/rpcproxy.h index 1ebc5d8..eaf2a6a 100644 --- a/include/rpcproxy.h +++ b/include/rpcproxy.h @@ -33,6 +33,10 @@ #include <rpc.h> #include <rpcndr.h> +#ifdef __cplusplus +extern "C" { +#endif + typedef struct tagCInterfaceStubVtbl *PCInterfaceStubVtblList; typedef struct tagCInterfaceProxyVtbl *PCInterfaceProxyVtblList; typedef const char *PCInterfaceName; @@ -357,4 +361,8 @@ RPCRTAPI HRESULT RPC_ENTRY #endif +#ifdef __cplusplus +} +#endif + #endif /*__WINE_RPCDCE_H */ diff --git a/include/setupapi.h b/include/setupapi.h index d52790d..3169807 100644 --- a/include/setupapi.h +++ b/include/setupapi.h @@ -22,6 +22,10 @@ #include <commctrl.h> +#ifdef __cplusplus +extern "C" { +#endif + /* setupapi doesn't use the normal convention, it adds an underscore before A/W */ #ifdef __WINESRC__ # define DECL_WINELIB_SETUPAPI_TYPE_AW(type) /* nothing */ @@ -1818,6 +1822,10 @@ PSTR WINAPI UnicodeToMultiByte(PCWSTR lpUnicodeStr, UINT uCodePage); BOOL WINAPI UnmapAndCloseFile(HANDLE, HANDLE, PVOID); +#ifdef __cplusplus +} +#endif + #undef DECL_WINELIB_SETUPAPI_TYPE_AW #ifdef __cplusplus diff --git a/include/winnetwk.h b/include/winnetwk.h index e0b8ab8..b69c0eb 100644 --- a/include/winnetwk.h +++ b/include/winnetwk.h @@ -20,6 +20,10 @@ #ifndef _WINNETWK_H_ #define _WINNETWK_H_ +#ifdef __cplusplus +extern "C" { +#endif + /* * Network types */ @@ -401,5 +405,8 @@ UINT WINAPI WNetEnumCachedPasswords( LPSTR, WORD, BYTE, ENUMPASSWORDPROC, DWORD) DWORD WINAPI WNetGetCachedPassword( LPSTR, WORD, LPSTR, LPWORD, BYTE ); DWORD WINAPI WNetCachePassword( LPSTR, WORD, LPSTR, WORD, BYTE, WORD ); +#ifdef __cplusplus +} +#endif #endif /* _WINNETWK_H_ */
1
0
0
0
Francois Gouget : includes: Remove unneeded extern "C" statements.
by Alexandre Julliard
27 Sep '07
27 Sep '07
Module: wine Branch: master Commit: 74b240bff207d048e2d519e58316581bbe944b19 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=74b240bff207d048e2d519e58…
Author: Francois Gouget <fgouget(a)free.fr> Date: Thu Sep 27 18:47:24 2007 +0200 includes: Remove unneeded extern "C" statements. --- include/msidefs.h | 8 -------- include/wshisotp.h | 7 ------- 2 files changed, 0 insertions(+), 15 deletions(-) diff --git a/include/msidefs.h b/include/msidefs.h index 9e1e75d..ab9dcb6 100644 --- a/include/msidefs.h +++ b/include/msidefs.h @@ -19,10 +19,6 @@ #ifndef __WINE_MSIDEFS_H #define __WINE_MSIDEFS_H -#ifdef __cplusplus -extern "C" { -#endif - enum msidbUpgradeAttributes { msidbUpgradeAttributesMigrateFeatures = 0x0000001, msidbUpgradeAttributesOnlyDetect = 0x00000002, @@ -243,8 +239,4 @@ enum msidbServiceControlEvent #define PID_MSISOURCE PID_WORDCOUNT #define PID_MSIRESTRICT PID_CHARCOUNT -#ifdef __cplusplus -} -#endif - #endif /* __WINE_MSIDEFS_H */ diff --git a/include/wshisotp.h b/include/wshisotp.h index 28f2182..2e91086 100644 --- a/include/wshisotp.h +++ b/include/wshisotp.h @@ -19,9 +19,6 @@ #ifndef _WINE_WSHISOTP_ #define _WINE_WSHISOTP_ -#ifdef __cplusplus -extern "C" { -#endif /* defined(__cplusplus) */ /* * constants @@ -30,8 +27,4 @@ extern "C" { #define ISOPROTO_TP ISOPROTO_TP4 -#ifdef __cplusplus -} /* extern "C" */ -#endif /* defined(__cplusplus) */ - #endif /* _WINE_WSHISOTP_ */
1
0
0
0
Francois Gouget : riched20/tests: Add '\n's to ok() calls.
by Alexandre Julliard
27 Sep '07
27 Sep '07
Module: wine Branch: master Commit: d32d8ac862270319c6ece3c97aebedfdbab34d7b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=d32d8ac862270319c6ece3c97…
Author: Francois Gouget <fgouget(a)free.fr> Date: Thu Sep 27 18:29:08 2007 +0200 riched20/tests: Add '\n's to ok() calls. --- dlls/riched20/tests/editor.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/riched20/tests/editor.c b/dlls/riched20/tests/editor.c index 0ec7da4..de36d6e 100644 --- a/dlls/riched20/tests/editor.c +++ b/dlls/riched20/tests/editor.c @@ -1290,7 +1290,7 @@ static void test_EM_EXLIMITTEXT(void) /* try inserting more text at end */ i = SendMessage(hwndRichEdit, WM_CHAR, 'A', 0); - ok(0 == i, "WM_CHAR wasn't processed"); + ok(0 == i, "WM_CHAR wasn't processed\n"); SendMessage(hwndRichEdit, WM_GETTEXT, 1024, (LPARAM) buffer); i = strlen(buffer); ok(10 == i, "expected 10 chars, got %i\n", i); @@ -1300,7 +1300,7 @@ static void test_EM_EXLIMITTEXT(void) /* try inserting text at beginning */ SendMessage(hwndRichEdit, EM_SETSEL, 0, 0); i = SendMessage(hwndRichEdit, WM_CHAR, 'A', 0); - ok(0 == i, "WM_CHAR wasn't processed"); + ok(0 == i, "WM_CHAR wasn't processed\n"); SendMessage(hwndRichEdit, WM_GETTEXT, 1024, (LPARAM) buffer); i = strlen(buffer); ok(10 == i, "expected 10 chars, got %i\n", i); @@ -1312,9 +1312,9 @@ static void test_EM_EXLIMITTEXT(void) SendMessage(hwndRichEdit, EM_EXLIMITTEXT, 0, textlimit); SendMessage(hwndRichEdit, EM_SETSEL, 0, -1); /* select everything */ i = SendMessage(hwndRichEdit, WM_CHAR, 'A', 0); - ok(0 == i, "WM_CHAR wasn't processed"); + ok(0 == i, "WM_CHAR wasn't processed\n"); i = SendMessage(hwndRichEdit, WM_CHAR, 'A', 0); - ok(0 == i, "WM_CHAR wasn't processed"); + ok(0 == i, "WM_CHAR wasn't processed\n"); SendMessage(hwndRichEdit, WM_GETTEXT, 1024, (LPARAM) buffer); i = strlen(buffer); ok(1 == i, "expected 1 chars, got %i instead\n", i);
1
0
0
0
Francois Gouget : wineoss.drv: Add support for $MIDIDEV to match $AUDIODEV and $MIXERDEV.
by Alexandre Julliard
27 Sep '07
27 Sep '07
Module: wine Branch: master Commit: 02b1ef89203df6120622ba49936cdb135cabd143 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=02b1ef89203df6120622ba499…
Author: Francois Gouget <fgouget(a)codeweavers.com> Date: Thu Sep 27 18:29:02 2007 +0200 wineoss.drv: Add support for $MIDIDEV to match $AUDIODEV and $MIXERDEV. --- dlls/wineoss.drv/midi.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dlls/wineoss.drv/midi.c b/dlls/wineoss.drv/midi.c index dfacffb..2f790f1 100644 --- a/dlls/wineoss.drv/midi.c +++ b/dlls/wineoss.drv/midi.c @@ -42,6 +42,7 @@ #include "config.h" #include "wine/port.h" +#include <stdlib.h> #include <string.h> #include <stdarg.h> #include <stdio.h> @@ -78,8 +79,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(midi); #ifdef HAVE_OSS_MIDI -#define MIDI_SEQ "/dev/sequencer" - typedef struct { int state; /* -1 disabled, 0 is no recording started, 1 in recording, bit 2 set if in sys exclusive recording */ DWORD bufsize; @@ -455,13 +454,16 @@ static int midi_warn = 1; static int midiOpenSeq(void) { if (numOpenMidiSeq == 0) { - midiSeqFD = open(MIDI_SEQ, O_RDWR, 0); + const char* device; + device=getenv("MIDIDEV"); + if (!device) device="/dev/sequencer"; + midiSeqFD = open(device, O_RDWR, 0); if (midiSeqFD == -1) { if (midi_warn) { WARN("Can't open MIDI device '%s' ! (%s). If your " "program needs this (probably not): %s\n", - MIDI_SEQ, strerror(errno), + device, strerror(errno), errno == ENOENT ? "create it ! (\"man MAKEDEV\" ?)" : errno == ENODEV ?
1
0
0
0
Andrew Talbot : kernel32: Fix a memory leak.
by Alexandre Julliard
27 Sep '07
27 Sep '07
Module: wine Branch: master Commit: 344e8acb8e40075587220464715414cdf907bf10 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=344e8acb8e400755872204647…
Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Wed Sep 26 16:51:29 2007 +0100 kernel32: Fix a memory leak. --- dlls/kernel32/profile.c | 24 ++++++++++++------------ 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/dlls/kernel32/profile.c b/dlls/kernel32/profile.c index 27a3d06..f58a989 100644 --- a/dlls/kernel32/profile.c +++ b/dlls/kernel32/profile.c @@ -311,7 +311,7 @@ static inline ENCODING PROFILE_DetectTextEncoding(const void * buffer, int * len */ static PROFILESECTION *PROFILE_Load(HANDLE hFile, ENCODING * pEncoding) { - void *pBuffer; + void *buffer_base, *pBuffer; WCHAR * szFile; const WCHAR *szLineStart, *szLineEnd; const WCHAR *szValueStart, *szEnd, *next_line; @@ -327,20 +327,20 @@ static PROFILESECTION *PROFILE_Load(HANDLE hFile, ENCODING * pEncoding) if (dwFileSize == INVALID_FILE_SIZE) return NULL; - pBuffer = HeapAlloc(GetProcessHeap(), 0 , dwFileSize); - if (!pBuffer) return NULL; + buffer_base = HeapAlloc(GetProcessHeap(), 0 , dwFileSize); + if (!buffer_base) return NULL; - if (!ReadFile(hFile, pBuffer, dwFileSize, &dwFileSize, NULL)) + if (!ReadFile(hFile, buffer_base, dwFileSize, &dwFileSize, NULL)) { - HeapFree(GetProcessHeap(), 0, pBuffer); + HeapFree(GetProcessHeap(), 0, buffer_base); WARN("Error %d reading file\n", GetLastError()); return NULL; } len = dwFileSize; - *pEncoding = PROFILE_DetectTextEncoding(pBuffer, &len); + *pEncoding = PROFILE_DetectTextEncoding(buffer_base, &len); /* len is set to the number of bytes in the character marker. * we want to skip these bytes */ - pBuffer = (char *)pBuffer + len; + pBuffer = (char *)buffer_base + len; dwFileSize -= len; switch (*pEncoding) { @@ -351,7 +351,7 @@ static PROFILESECTION *PROFILE_Load(HANDLE hFile, ENCODING * pEncoding) szFile = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR)); if (!szFile) { - HeapFree(GetProcessHeap(), 0, pBuffer); + HeapFree(GetProcessHeap(), 0, buffer_base); return NULL; } MultiByteToWideChar(CP_ACP, 0, (char *)pBuffer, dwFileSize, szFile, len); @@ -364,7 +364,7 @@ static PROFILESECTION *PROFILE_Load(HANDLE hFile, ENCODING * pEncoding) szFile = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR)); if (!szFile) { - HeapFree(GetProcessHeap(), 0, pBuffer); + HeapFree(GetProcessHeap(), 0, buffer_base); return NULL; } MultiByteToWideChar(CP_UTF8, 0, (char *)pBuffer, dwFileSize, szFile, len); @@ -383,7 +383,7 @@ static PROFILESECTION *PROFILE_Load(HANDLE hFile, ENCODING * pEncoding) break; default: FIXME("encoding type %d not implemented\n", *pEncoding); - HeapFree(GetProcessHeap(), 0, pBuffer); + HeapFree(GetProcessHeap(), 0, buffer_base); return NULL; } @@ -392,7 +392,7 @@ static PROFILESECTION *PROFILE_Load(HANDLE hFile, ENCODING * pEncoding) { if (szFile != pBuffer) HeapFree(GetProcessHeap(), 0, szFile); - HeapFree(GetProcessHeap(), 0, pBuffer); + HeapFree(GetProcessHeap(), 0, buffer_base); return NULL; } first_section->name[0] = 0; @@ -489,7 +489,7 @@ static PROFILESECTION *PROFILE_Load(HANDLE hFile, ENCODING * pEncoding) } if (szFile != pBuffer) HeapFree(GetProcessHeap(), 0, szFile); - HeapFree(GetProcessHeap(), 0, pBuffer); + HeapFree(GetProcessHeap(), 0, buffer_base); return first_section; }
1
0
0
0
Andrew Talbot : gdiplus: Fix some memory leaks.
by Alexandre Julliard
27 Sep '07
27 Sep '07
Module: wine Branch: master Commit: dfac0635f65c07e4f45106395aacbcce8819073f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=dfac0635f65c07e4f45106395…
Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Tue Sep 25 20:52:58 2007 +0100 gdiplus: Fix some memory leaks. --- dlls/gdiplus/graphics.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/dlls/gdiplus/graphics.c b/dlls/gdiplus/graphics.c index 3072b50..c69c0e5 100644 --- a/dlls/gdiplus/graphics.c +++ b/dlls/gdiplus/graphics.c @@ -1418,6 +1418,7 @@ GpStatus WINGDIPAPI GdipDrawString(GpGraphics *graphics, GDIPCONST WCHAR *string break; } + GdipFree(stringdup); DeleteObject(rgn); DeleteObject(gdifont); @@ -1827,6 +1828,7 @@ GpStatus WINGDIPAPI GdipMeasureString(GpGraphics *graphics, bounds->Width = (REAL)max_width; bounds->Height = (REAL) min(height, nheight); + GdipFree(stringdup); DeleteObject(SelectObject(graphics->hdc, oldfont)); return Ok;
1
0
0
0
Alexandre Julliard : gdi32: Fix typo in FIXME (spotted by Rob Shearman).
by Alexandre Julliard
27 Sep '07
27 Sep '07
Module: wine Branch: master Commit: 161821155d1e3e491f63a017d5fdcd9ea1e43339 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=161821155d1e3e491f63a017d…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Sep 27 18:05:57 2007 +0200 gdi32: Fix typo in FIXME (spotted by Rob Shearman). --- dlls/gdi32/freetype.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c index 3ec28f9..6036f48 100644 --- a/dlls/gdi32/freetype.c +++ b/dlls/gdi32/freetype.c @@ -5062,7 +5062,7 @@ BOOL WineEngGetLinkedHFont(DC *dc, WCHAR c, HFONT *new_hfont, UINT *glyph) DWORD WineEngGetFontUnicodeRanges(GdiFont *font, LPGLYPHSET glyphset) { - FIXME("(%p, %p): stub\n", hdc, glyphset); + FIXME("(%p, %p): stub\n", font, glyphset); return 0; }
1
0
0
0
Alexandre Julliard : winex11.drv: Don' t call GDI functions while holding the X11 lock.
by Alexandre Julliard
27 Sep '07
27 Sep '07
Module: wine Branch: master Commit: 809af590a191459c232bd00e0f0238747fc13f58 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=809af590a191459c232bd00e0…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Sep 27 18:02:26 2007 +0200 winex11.drv: Don't call GDI functions while holding the X11 lock. --- dlls/winex11.drv/bitblt.c | 48 ++++++++++++++++++++++++++++++++++--------- dlls/winex11.drv/dib.c | 15 ++++++++++-- dlls/winex11.drv/graphics.c | 24 +++++++++++--------- dlls/winex11.drv/init.c | 4 ++- dlls/winex11.drv/opengl.c | 10 ++++++-- dlls/winex11.drv/xrender.c | 4 ++- 6 files changed, 76 insertions(+), 29 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=809af590a191459c232bd…
1
0
0
0
Mikolaj Zalewski : advapi32: The lpServiceStartName should default to LocalSystem for Win32 services.
by Alexandre Julliard
27 Sep '07
27 Sep '07
Module: wine Branch: master Commit: 2ba324738d9d04e7b32cd9fc0ec7b0aa8b45305b URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2ba324738d9d04e7b32cd9fc0…
Author: Mikolaj Zalewski <mikolajz(a)google.com> Date: Wed Sep 26 11:45:51 2007 -0700 advapi32: The lpServiceStartName should default to LocalSystem for Win32 services. --- dlls/advapi32/service.c | 4 ++++ dlls/advapi32/tests/service.c | 2 +- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/dlls/advapi32/service.c b/dlls/advapi32/service.c index 82bd7ed..4708506 100644 --- a/dlls/advapi32/service.c +++ b/dlls/advapi32/service.c @@ -39,6 +39,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(advapi); +static const WCHAR szLocalSystem[] = {'L','o','c','a','l','S','y','s','t','e','m',0}; static const WCHAR szServiceManagerKey[] = { 'S','y','s','t','e','m','\\', 'C','u','r','r','e','n','t','C','o','n','t','r','o','l','S','e','t','\\', 'S','e','r','v','i','c','e','s',0 }; @@ -1342,6 +1343,9 @@ CreateServiceW( SC_HANDLE hSCManager, LPCWSTR lpServiceName, return NULL; } + if (!lpServiceStartName && (dwServiceType & SERVICE_WIN32)) + lpServiceStartName = szLocalSystem; + /* StartType can only be a single value (if several values are mixed the result is probably not what was intended) */ if (dwStartType > SERVICE_DISABLED) { diff --git a/dlls/advapi32/tests/service.c b/dlls/advapi32/tests/service.c index bfb535d..79b4c3c 100644 --- a/dlls/advapi32/tests/service.c +++ b/dlls/advapi32/tests/service.c @@ -815,8 +815,8 @@ static void test_sequence(void) todo_wine { ok(!memcmp(config->lpDependencies, dependencies, sizeof(dependencies)), "Wrong string\n"); - ok(!strcmp(config->lpServiceStartName, localsystem), "Expected 'LocalSystem', got '%s'\n", config->lpServiceStartName); } + ok(!strcmp(config->lpServiceStartName, localsystem), "Expected 'LocalSystem', got '%s'\n", config->lpServiceStartName); ok(!strcmp(config->lpDisplayName, displayname), "Expected '%s', got '%s'\n", displayname, config->lpDisplayName); SetLastError(0xdeadbeef);
1
0
0
0
Maarten Lankhorst : wineoss: Only initialise midi once.
by Alexandre Julliard
27 Sep '07
27 Sep '07
Module: wine Branch: master Commit: cb92675953ced8d699c3fe542a10e8d45182b600 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cb92675953ced8d699c3fe542…
Author: Maarten Lankhorst <m.b.lankhorst(a)gmail.com> Date: Thu Sep 27 00:19:14 2007 +0200 wineoss: Only initialise midi once. --- dlls/wineoss.drv/midi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/wineoss.drv/midi.c b/dlls/wineoss.drv/midi.c index 7472b56..dfacffb 100644 --- a/dlls/wineoss.drv/midi.c +++ b/dlls/wineoss.drv/midi.c @@ -187,7 +187,7 @@ LRESULT OSS_MidiInit(void) return 0; TRACE("Initializing the MIDI variables.\n"); - bInitDone = 0; + bInitDone = TRUE; /* try to open device */ if (midiOpenSeq() == -1) {
1
0
0
0
← Newer
1
2
3
4
5
6
7
8
...
79
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Results per page:
10
25
50
100
200