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 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
3 participants
824 discussions
Start a n
N
ew thread
Alistair Leslie-Hughes : msxml3: Fix memory leak in test.
by Alexandre Julliard
11 Dec '07
11 Dec '07
Module: wine Branch: master Commit: 93b64766716f2073fa7e87c37a09bffcbaaed4ed URL:
http://source.winehq.org/git/wine.git/?a=commit;h=93b64766716f2073fa7e87c37…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Tue Dec 11 16:06:00 2007 +1100 msxml3: Fix memory leak in test. --- dlls/msxml3/tests/domdoc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/msxml3/tests/domdoc.c b/dlls/msxml3/tests/domdoc.c index d7afb19..41208f2 100644 --- a/dlls/msxml3/tests/domdoc.c +++ b/dlls/msxml3/tests/domdoc.c @@ -575,7 +575,7 @@ static void test_domnode( void ) ok ( r == E_INVALIDARG, "get_nodeName (NULL) wrong code\n"); /* content doesn't matter here */ - str = SysAllocString( szNonExistentFile ); + str = NULL; r = IXMLDOMElement_get_nodeName( element, &str ); ok ( r == S_OK, "get_nodeName wrong code\n"); ok ( str != NULL, "str is null\n");
1
0
0
0
Alistair Leslie-Hughes : shlwapi: Fix memory leak in test.
by Alexandre Julliard
11 Dec '07
11 Dec '07
Module: wine Branch: master Commit: 6dd046a61d242f3b5f7863bbc56257a634a2d782 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=6dd046a61d242f3b5f7863bbc…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Tue Dec 11 15:37:42 2007 +1100 shlwapi: Fix memory leak in test. --- dlls/shlwapi/tests/string.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/dlls/shlwapi/tests/string.c b/dlls/shlwapi/tests/string.c index 895d767..b90dcc6 100644 --- a/dlls/shlwapi/tests/string.c +++ b/dlls/shlwapi/tests/string.c @@ -483,6 +483,7 @@ static void test_StrDupA(void) */ lpszStr = StrDupA(NULL); ok(lpszStr == NULL || *lpszStr == '\0', "NULL string returned %p\n", lpszStr); + LocalFree((HLOCAL)lpszStr); } static void test_StrFormatByteSize64A(void)
1
0
0
0
Jacek Caban : shdocvw: Added client site's IOleCommandTarget tests.
by Alexandre Julliard
11 Dec '07
11 Dec '07
Module: wine Branch: master Commit: 69805b12456f8c62d0906365f7c08b0bcc1b9601 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=69805b12456f8c62d0906365f…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Tue Dec 11 01:40:17 2007 +0100 shdocvw: Added client site's IOleCommandTarget tests. --- dlls/shdocvw/tests/webbrowser.c | 154 +++++++++++++++++++++++++++++++++++++-- 1 files changed, 146 insertions(+), 8 deletions(-) diff --git a/dlls/shdocvw/tests/webbrowser.c b/dlls/shdocvw/tests/webbrowser.c index dacd6fd..9908df8 100644 --- a/dlls/shdocvw/tests/webbrowser.c +++ b/dlls/shdocvw/tests/webbrowser.c @@ -21,6 +21,7 @@ #include <wine/test.h> #include <stdarg.h> +#include <stdio.h> #include "windef.h" #include "winbase.h" @@ -31,6 +32,7 @@ #include "idispids.h" #include "olectl.h" #include "mshtmdid.h" +#include "shlguid.h" #define DEFINE_EXPECT(func) \ static BOOL expect_ ## func = FALSE, called_ ## func = FALSE @@ -38,17 +40,16 @@ #define SET_EXPECT(func) \ expect_ ## func = TRUE -#define CHECK_EXPECT(func) \ +#define CHECK_EXPECT2(func) \ do { \ ok(expect_ ##func, "unexpected call " #func "\n"); \ - expect_ ## func = FALSE; \ called_ ## func = TRUE; \ }while(0) -#define CHECK_EXPECT2(func) \ +#define CHECK_EXPECT(func) \ do { \ - ok(expect_ ##func, "unexpected call " #func "\n"); \ - called_ ## func = TRUE; \ + CHECK_EXPECT2(func); \ + expect_ ## func = FALSE; \ }while(0) #define CHECK_CALLED(func) \ @@ -81,19 +82,139 @@ DEFINE_EXPECT(GetOptionKeyPath); DEFINE_EXPECT(GetOverridesKeyPath); DEFINE_EXPECT(SetStatusText); DEFINE_EXPECT(UpdateUI); +DEFINE_EXPECT(Exec_SETDOWNLOADSTATE_0); +DEFINE_EXPECT(Exec_SETDOWNLOADSTATE_1); +DEFINE_EXPECT(Exec_SETPROGRESSMAX); +DEFINE_EXPECT(Exec_SETPROGRESSPOS); +DEFINE_EXPECT(QueryStatus_SETPROGRESSTEXT); static const WCHAR wszItem[] = {'i','t','e','m',0}; static HWND container_hwnd, shell_embedding_hwnd; +static const char *debugstr_guid(REFIID riid) +{ + static char buf[50]; + + sprintf(buf, "{%08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X}", + riid->Data1, riid->Data2, riid->Data3, riid->Data4[0], + riid->Data4[1], riid->Data4[2], riid->Data4[3], riid->Data4[4], + riid->Data4[5], riid->Data4[6], riid->Data4[7]); + + return buf; +} + static HRESULT QueryInterface(REFIID,void**); +static HRESULT WINAPI OleCommandTarget_QueryInterface(IOleCommandTarget *iface, + REFIID riid, void **ppv) +{ + ok(0, "unexpected call\n"); + return E_NOINTERFACE; +} + +static ULONG WINAPI OleCommandTarget_AddRef(IOleCommandTarget *iface) +{ + return 2; +} + +static ULONG WINAPI OleCommandTarget_Release(IOleCommandTarget *iface) +{ + return 1; +} + +static HRESULT WINAPI OleCommandTarget_QueryStatus(IOleCommandTarget *iface, const GUID *pguidCmdGroup, + ULONG cCmds, OLECMD prgCmds[], OLECMDTEXT *pCmdText) +{ + ok(!pguidCmdGroup, "pguidCmdGroup != MULL\n"); + ok(cCmds == 1, "cCmds=%d, expected 1\n", cCmds); + ok(!pCmdText, "pCmdText != NULL\n"); + + switch(prgCmds[0].cmdID) { + case OLECMDID_SETPROGRESSTEXT: + CHECK_EXPECT(QueryStatus_SETPROGRESSTEXT); + prgCmds[0].cmdf = OLECMDF_ENABLED; + return S_OK; + default: + ok(0, "unexpected command %d\n", prgCmds[0].cmdID); + } + + return E_FAIL; +} + +static HRESULT WINAPI OleCommandTarget_Exec(IOleCommandTarget *iface, const GUID *pguidCmdGroup, + DWORD nCmdID, DWORD nCmdexecopt, VARIANT *pvaIn, VARIANT *pvaOut) +{ + if(!pguidCmdGroup) { + switch(nCmdID) { + case OLECMDID_SETPROGRESSMAX: + CHECK_EXPECT(Exec_SETPROGRESSMAX); + ok(nCmdexecopt == OLECMDEXECOPT_DONTPROMPTUSER, "nCmdexecopts=%08x\n", nCmdexecopt); + ok(pvaIn != NULL, "pvaIn == NULL\n"); + if(pvaIn) + ok(V_VT(pvaIn) == VT_I4, "V_VT(pvaIn)=%d, expected VT_I4\n", V_VT(pvaIn)); + ok(pvaOut == NULL, "pvaOut=%p, expected NULL\n", pvaOut); + return S_OK; + case OLECMDID_SETPROGRESSPOS: + CHECK_EXPECT(Exec_SETPROGRESSPOS); + ok(nCmdexecopt == OLECMDEXECOPT_DONTPROMPTUSER, "nCmdexecopts=%08x\n", nCmdexecopt); + ok(pvaIn != NULL, "pvaIn == NULL\n"); + if(pvaIn) + ok(V_VT(pvaIn) == VT_I4, "V_VT(pvaIn)=%d, expected VT_I4\n", V_VT(pvaIn)); + ok(pvaOut == NULL, "pvaOut=%p, expected NULL\n", pvaOut); + return S_OK; + case OLECMDID_SETDOWNLOADSTATE: + ok(!nCmdexecopt, "nCmdexecopts=%08x\n", nCmdexecopt); + ok(pvaOut == NULL, "pvaOut=%p\n", pvaOut); + ok(pvaIn != NULL, "pvaIn == NULL\n"); + ok(V_VT(pvaIn) == VT_I4, "V_VT(pvaIn)=%d\n", V_VT(pvaIn)); + switch(V_I4(pvaIn)) { + case 0: + CHECK_EXPECT(Exec_SETDOWNLOADSTATE_0); + break; + case 1: + CHECK_EXPECT2(Exec_SETDOWNLOADSTATE_1); + break; + default: + ok(0, "unexpevted V_I4(pvaIn)=%d\n", V_I4(pvaIn)); + } + return S_OK; + default: + ok(0, "unexpected nsCmdID %d\n", nCmdID); + } + }else if(IsEqualGUID(&CGID_Explorer, pguidCmdGroup)) { + switch(nCmdID) { + case 24: + return E_FAIL; /* TODO */ + default: + ok(0, "unexpected nCmdID %d\n", nCmdID); + } + }else { + ok(0, "unepected pguidCmdGroup %s\n", debugstr_guid(pguidCmdGroup)); + } + + return E_FAIL; +} + +static IOleCommandTargetVtbl OleCommandTargetVtbl = { + OleCommandTarget_QueryInterface, + OleCommandTarget_AddRef, + OleCommandTarget_Release, + OleCommandTarget_QueryStatus, + OleCommandTarget_Exec +}; + +static IOleCommandTarget OleCommandTarget = { &OleCommandTargetVtbl }; + static HRESULT WINAPI OleContainer_QueryInterface(IOleContainer *iface, REFIID riid, void **ppv) { if(IsEqualGUID(&IID_ITargetContainer, riid)) return E_NOINTERFACE; /* TODO */ - if(IsEqualGUID(&IID_IOleCommandTarget, riid)) - return E_NOINTERFACE; /* TODO */ + + if(IsEqualGUID(&IID_IOleCommandTarget, riid)) { + *ppv = &OleCommandTarget; + return S_OK; + } ok(0, "unexpected call\n"); return E_NOINTERFACE; @@ -646,6 +767,7 @@ static HRESULT WINAPI DocHostUIHandler_ShowContextMenu(IDocHostUIHandler2 *iface IUnknown *pcmdtReserved, IDispatch *pdicpReserved) { ok(0, "unexpected call %d %p %p %p\n", dwID, ppt, pcmdtReserved, pdicpReserved); + trace("%x\n", dwID); return S_FALSE; } @@ -927,6 +1049,8 @@ static void test_ClientSite(IUnknown *unk, IOleClientSite *client) SET_EXPECT(Site_GetWindow); SET_EXPECT(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED); SET_EXPECT(Invoke_AMBIENT_SILENT); + }else { + SET_EXPECT(Exec_SETDOWNLOADSTATE_0); } hres = IOleObject_SetClientSite(oleobj, client); @@ -937,7 +1061,9 @@ static void test_ClientSite(IUnknown *unk, IOleClientSite *client) CHECK_CALLED(Site_GetWindow); CHECK_CALLED(Invoke_AMBIENT_OFFLINEIFNOTCONNECTED); CHECK_CALLED(Invoke_AMBIENT_SILENT); - } + }else { + todo_wine CHECK_CALLED(Exec_SETDOWNLOADSTATE_0); + } hres = IOleInPlaceObject_GetWindow(inplace, &hwnd); ok(hres == S_OK, "GetWindow failed: %08x\n", hres); @@ -1381,6 +1507,7 @@ static void test_Navigate2(IUnknown *unk) V_BSTR(&url) = SysAllocString(wszAboutBlank); SET_EXPECT(Invoke_AMBIENT_USERMODE); + SET_EXPECT(Exec_SETDOWNLOADSTATE_1); SET_EXPECT(EnableModeless_FALSE); SET_EXPECT(GetHostInfo); SET_EXPECT(Invoke_AMBIENT_DLCONTROL); @@ -1388,6 +1515,10 @@ static void test_Navigate2(IUnknown *unk) SET_EXPECT(Invoke_AMBIENT_PALETTE); SET_EXPECT(GetOptionKeyPath); SET_EXPECT(GetOverridesKeyPath); + SET_EXPECT(QueryStatus_SETPROGRESSTEXT); + SET_EXPECT(Exec_SETPROGRESSMAX); + SET_EXPECT(Exec_SETPROGRESSPOS); + SET_EXPECT(Exec_SETDOWNLOADSTATE_0); SET_EXPECT(SetStatusText); SET_EXPECT(EnableModeless_TRUE); @@ -1395,6 +1526,7 @@ static void test_Navigate2(IUnknown *unk) ok(hres == S_OK, "Navigate2 failed: %08x\n", hres); CHECK_CALLED(Invoke_AMBIENT_USERMODE); + todo_wine CHECK_CALLED(Exec_SETDOWNLOADSTATE_1); CHECK_CALLED(EnableModeless_FALSE); CHECK_CALLED(GetHostInfo); CHECK_CALLED(Invoke_AMBIENT_DLCONTROL); @@ -1402,6 +1534,12 @@ static void test_Navigate2(IUnknown *unk) CHECK_CALLED(Invoke_AMBIENT_PALETTE); CHECK_CALLED(GetOptionKeyPath); CHECK_CALLED(GetOverridesKeyPath); + todo_wine { + CHECK_CALLED(QueryStatus_SETPROGRESSTEXT); + CHECK_CALLED(Exec_SETPROGRESSMAX); + CHECK_CALLED(Exec_SETPROGRESSPOS); + CHECK_CALLED(Exec_SETDOWNLOADSTATE_0); + } CHECK_CALLED(SetStatusText); CHECK_CALLED(EnableModeless_TRUE);
1
0
0
0
Michael Stefaniuc : usp10: Rename the wrappers around HeapAlloc() &Co to use the standard names.
by Alexandre Julliard
11 Dec '07
11 Dec '07
Module: wine Branch: master Commit: 8f1b74a8464b388b5c23028680303a80aa5d8cff URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8f1b74a8464b388b5c2302868…
Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Mon Dec 10 23:53:07 2007 +0100 usp10: Rename the wrappers around HeapAlloc() &Co to use the standard names. --- dlls/usp10/usp10.c | 82 ++++++++++++++++++++++++++-------------------------- 1 files changed, 41 insertions(+), 41 deletions(-) diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c index 5d77829..2c3b9cc 100644 --- a/dlls/usp10/usp10.c +++ b/dlls/usp10/usp10.c @@ -173,24 +173,24 @@ typedef struct { SIZE* sz; } StringAnalysis; -static inline void *usp_alloc(SIZE_T size) +static inline void *heap_alloc(SIZE_T size) { return HeapAlloc(GetProcessHeap(), 0, size); } -static inline void *usp_zero_alloc(SIZE_T size) +static inline void *heap_alloc_zero(SIZE_T size) { return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size); } -static inline void *usp_zero_realloc(LPVOID mem, SIZE_T size) +static inline void *heap_realloc_zero(LPVOID mem, SIZE_T size) { return HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, mem, size); } -static inline void usp_free(LPVOID mem) +static inline BOOL heap_free(LPVOID mem) { - HeapFree(GetProcessHeap(), 0, mem); + return HeapFree(GetProcessHeap(), 0, mem); } static HDC get_cache_hdc(SCRIPT_CACHE *psc) @@ -230,10 +230,10 @@ static HRESULT get_script_cache(const HDC hdc, SCRIPT_CACHE *psc) ScriptCache *sc; if (!hdc) return E_PENDING; - if (!(sc = usp_zero_alloc(sizeof(ScriptCache)))) return E_OUTOFMEMORY; + if (!(sc = heap_alloc_zero(sizeof(ScriptCache)))) return E_OUTOFMEMORY; if ((ret = init_script_cache(hdc, sc))) { - usp_free(sc); + heap_free(sc); return ret; } *psc = sc; @@ -292,7 +292,7 @@ HRESULT WINAPI ScriptFreeCache(SCRIPT_CACHE *psc) if (psc) { - usp_free(*psc); + heap_free(*psc); *psc = NULL; } return S_OK; @@ -610,8 +610,8 @@ HRESULT WINAPI ScriptStringAnalyse(HDC hdc, const void *pString, int cString, if (cString < 1 || !pString) return E_INVALIDARG; if ((dwFlags & SSA_GLYPHS) && !hdc) return E_PENDING; - if (!(analysis = usp_zero_alloc(sizeof(StringAnalysis)))) return E_OUTOFMEMORY; - if (!(analysis->pItem = usp_zero_alloc(num_items * sizeof(SCRIPT_ITEM) + 1))) goto error; + if (!(analysis = heap_alloc_zero(sizeof(StringAnalysis)))) return E_OUTOFMEMORY; + if (!(analysis->pItem = heap_alloc_zero(num_items * sizeof(SCRIPT_ITEM) + 1))) goto error; /* FIXME: handle clipping */ analysis->clip_len = cString; @@ -624,7 +624,7 @@ HRESULT WINAPI ScriptStringAnalyse(HDC hdc, const void *pString, int cString, SCRIPT_ITEM *tmp; num_items *= 2; - if (!(tmp = usp_zero_realloc(analysis->pItem, num_items * sizeof(SCRIPT_ITEM) + 1))) + if (!(tmp = heap_realloc_zero(analysis->pItem, num_items * sizeof(SCRIPT_ITEM) + 1))) goto error; analysis->pItem = tmp; @@ -633,12 +633,12 @@ HRESULT WINAPI ScriptStringAnalyse(HDC hdc, const void *pString, int cString, } if (hr) goto error; - if ((analysis->logattrs = usp_alloc(sizeof(SCRIPT_LOGATTR) * cString))) + if ((analysis->logattrs = heap_alloc(sizeof(SCRIPT_LOGATTR) * cString))) ScriptBreak(pString, cString, (SCRIPT_STRING_ANALYSIS)analysis, analysis->logattrs); else goto error; - if (!(analysis->glyphs = usp_zero_alloc(sizeof(StringGlyphs) * analysis->numItems))) + if (!(analysis->glyphs = heap_alloc_zero(sizeof(StringGlyphs) * analysis->numItems))) goto error; for (i = 0; i < analysis->numItems; i++) @@ -646,12 +646,12 @@ HRESULT WINAPI ScriptStringAnalyse(HDC hdc, const void *pString, int cString, SCRIPT_CACHE *sc = (SCRIPT_CACHE *)&analysis->sc; int cChar = analysis->pItem[i+1].iCharPos - analysis->pItem[i].iCharPos; int numGlyphs = 1.5 * cChar + 16; - WORD *glyphs = usp_zero_alloc(sizeof(WORD) * numGlyphs); - WORD *pwLogClust = usp_zero_alloc(sizeof(WORD) * cChar); - int *piAdvance = usp_zero_alloc(sizeof(int) * numGlyphs); - SCRIPT_VISATTR *psva = usp_zero_alloc(sizeof(SCRIPT_VISATTR) * cChar); - GOFFSET *pGoffset = usp_zero_alloc(sizeof(GOFFSET) * numGlyphs); - ABC *abc = usp_zero_alloc(sizeof(ABC)); + WORD *glyphs = heap_alloc_zero(sizeof(WORD) * numGlyphs); + WORD *pwLogClust = heap_alloc_zero(sizeof(WORD) * cChar); + int *piAdvance = heap_alloc_zero(sizeof(int) * numGlyphs); + SCRIPT_VISATTR *psva = heap_alloc_zero(sizeof(SCRIPT_VISATTR) * cChar); + GOFFSET *pGoffset = heap_alloc_zero(sizeof(GOFFSET) * numGlyphs); + ABC *abc = heap_alloc_zero(sizeof(ABC)); int numGlyphsReturned; /* FIXME: non unicode strings */ @@ -675,11 +675,11 @@ HRESULT WINAPI ScriptStringAnalyse(HDC hdc, const void *pString, int cString, return S_OK; error: - usp_free(analysis->glyphs); - usp_free(analysis->logattrs); - usp_free(analysis->pItem); - usp_free(analysis->sc); - usp_free(analysis); + heap_free(analysis->glyphs); + heap_free(analysis->logattrs); + heap_free(analysis->pItem); + heap_free(analysis->sc); + heap_free(analysis); return hr; } @@ -731,7 +731,7 @@ HRESULT WINAPI ScriptStringOut(SCRIPT_STRING_ANALYSIS ssa, { cnt += analysis->glyphs[item].numGlyphs; } - if (!(glyphs = usp_alloc(sizeof(WCHAR) * cnt))) return E_OUTOFMEMORY; + if (!(glyphs = heap_alloc(sizeof(WCHAR) * cnt))) return E_OUTOFMEMORY; /* * ScriptStringOut only processes glyphs hence set ETO_GLYPH_INDEX @@ -767,7 +767,7 @@ HRESULT WINAPI ScriptStringOut(SCRIPT_STRING_ANALYSIS ssa, /* * Free the output buffer and script cache */ - usp_free(glyphs); + heap_free(glyphs); return hr; } @@ -894,20 +894,20 @@ HRESULT WINAPI ScriptStringFree(SCRIPT_STRING_ANALYSIS *pssa) for (i = 0; i < analysis->numItems; i++) { - usp_free(analysis->glyphs[i].glyphs); - usp_free(analysis->glyphs[i].pwLogClust); - usp_free(analysis->glyphs[i].piAdvance); - usp_free(analysis->glyphs[i].psva); - usp_free(analysis->glyphs[i].pGoffset); - usp_free(analysis->glyphs[i].abc); + heap_free(analysis->glyphs[i].glyphs); + heap_free(analysis->glyphs[i].pwLogClust); + heap_free(analysis->glyphs[i].piAdvance); + heap_free(analysis->glyphs[i].psva); + heap_free(analysis->glyphs[i].pGoffset); + heap_free(analysis->glyphs[i].abc); } - usp_free(analysis->glyphs); - usp_free(analysis->pItem); - usp_free(analysis->logattrs); - usp_free(analysis->sz); - usp_free(analysis->sc); - usp_free(analysis); + heap_free(analysis->glyphs); + heap_free(analysis->pItem); + heap_free(analysis->logattrs); + heap_free(analysis->sz); + heap_free(analysis->sc); + heap_free(analysis); if (invalid) return E_INVALIDARG; return S_OK; @@ -1321,7 +1321,7 @@ HRESULT WINAPI ScriptPlace(HDC hdc, SCRIPT_CACHE *psc, const WORD *pwGlyphs, * has been converted to glyphs and we still need to translate back to the original chars * to get the correct ABC widths. */ - if (!(lpABC = usp_zero_alloc(sizeof(ABC) * cGlyphs))) return E_OUTOFMEMORY; + if (!(lpABC = heap_alloc_zero(sizeof(ABC) * cGlyphs))) return E_OUTOFMEMORY; if (pABC) memset(pABC, 0, sizeof(ABC)); @@ -1357,7 +1357,7 @@ HRESULT WINAPI ScriptPlace(HDC hdc, SCRIPT_CACHE *psc, const WORD *pwGlyphs, if (pABC) TRACE("Total for run: abcA=%d, abcB=%d, abcC=%d\n", pABC->abcA, pABC->abcB, pABC->abcC); - usp_free(lpABC); + heap_free(lpABC); unselect_cached_font(psc, hfont); return S_OK; } @@ -1615,7 +1615,7 @@ const SIZE * WINAPI ScriptString_pSize(SCRIPT_STRING_ANALYSIS ssa) if (!analysis->sz) { - if (!(analysis->sz = usp_alloc(sizeof(SIZE)))) return NULL; + if (!(analysis->sz = heap_alloc(sizeof(SIZE)))) return NULL; analysis->sz->cy = analysis->sc->height; analysis->sz->cx = 0;
1
0
0
0
Alistair Leslie-Hughes : msxml: Register missing components.
by Alexandre Julliard
11 Dec '07
11 Dec '07
Module: wine Branch: master Commit: b2add094adf5957cb617fbdaef3fea44dfa61924 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b2add094adf5957cb617fbdae…
Author: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com> Date: Tue Dec 11 09:02:36 2007 +1100 msxml: Register missing components. --- dlls/msxml3/factory.c | 4 ++++ dlls/msxml3/regsvr.c | 17 +++++++++++++++++ 2 files changed, 21 insertions(+), 0 deletions(-) diff --git a/dlls/msxml3/factory.c b/dlls/msxml3/factory.c index 67ed747..a973b04 100644 --- a/dlls/msxml3/factory.c +++ b/dlls/msxml3/factory.c @@ -158,6 +158,10 @@ HRESULT WINAPI DllGetClassObject( REFCLSID rclsid, REFIID iid, LPVOID *ppv ) { cf = (IClassFactory*) &xmldoccf.lpVtbl; } + else if( IsEqualCLSID( rclsid, &CLSID_FreeThreadedDOMDocument ) ) + { + cf = (IClassFactory*) &domdoccf.lpVtbl; + } if ( !cf ) return CLASS_E_CLASSNOTAVAILABLE; diff --git a/dlls/msxml3/regsvr.c b/dlls/msxml3/regsvr.c index 9a0d938..3a0c6bd 100644 --- a/dlls/msxml3/regsvr.c +++ b/dlls/msxml3/regsvr.c @@ -496,6 +496,23 @@ static struct regsvr_coclass const coclass_list[] = { "Microsoft.FreeThreadedXMLDOM", "1.0" }, + { &CLSID_DOMFreeThreadedDocument, + "Free threaded XML DOM Document", + NULL, + "msxml3.dll", + "Both", + "Microsoft.FreeThreadedXMLDOM", + NULL + }, + { &CLSID_FreeThreadedDOMDocument, + "Free Threaded XML DOM Document", + NULL, + "msxml3.dll", + "Both", + "Microsoft.FreeThreadedXMLDOM.1.0", + "1.0" + }, + { &CLSID_XMLHTTPRequest, "XML HTTP Request", NULL,
1
0
0
0
Andrew Talbot : dplayx: Remove unneeded casts.
by Alexandre Julliard
11 Dec '07
11 Dec '07
Module: wine Branch: master Commit: 03a20204735784099d85d380da79e3a2fc1dcc9d URL:
http://source.winehq.org/git/wine.git/?a=commit;h=03a20204735784099d85d380d…
Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Mon Dec 10 22:03:28 2007 +0000 dplayx: Remove unneeded casts. --- dlls/dplayx/dplay.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/dplayx/dplay.c b/dlls/dplayx/dplay.c index f421fe7..e3c3562 100644 --- a/dlls/dplayx/dplay.c +++ b/dlls/dplayx/dplay.c @@ -1918,7 +1918,7 @@ cbDeletePlayerFromAllGroups( DP_IF_EnumGroupsInGroup( (IDirectPlay3Impl*)lpCtxt->This, dpId, NULL, cbDeletePlayerFromAllGroups, - (LPVOID)lpContext, DPENUMGROUPS_ALL, + lpContext, DPENUMGROUPS_ALL, lpCtxt->bAnsi ); } @@ -3358,7 +3358,7 @@ static void DP_CopySessionDesc( LPDPSESSIONDESC2 lpSessionDest, lpSessionDest->u1.lpszSessionNameA ); lpSessionDest->u1.lpszSessionNameA = (LPSTR)lpStartOfFreeSpace; lpStartOfFreeSpace += - lstrlenA( (LPSTR)lpSessionDest->u1.lpszSessionNameA ) + 1; + lstrlenA( lpSessionDest->u1.lpszSessionNameA ) + 1; } if( lpSessionSrc->u2.lpszPasswordA ) @@ -3367,7 +3367,7 @@ static void DP_CopySessionDesc( LPDPSESSIONDESC2 lpSessionDest, lpSessionDest->u2.lpszPasswordA ); lpSessionDest->u2.lpszPasswordA = (LPSTR)lpStartOfFreeSpace; lpStartOfFreeSpace += - lstrlenA( (LPSTR)lpSessionDest->u2.lpszPasswordA ) + 1; + lstrlenA( lpSessionDest->u2.lpszPasswordA ) + 1; } } else /* UNICODE */ @@ -3378,7 +3378,7 @@ static void DP_CopySessionDesc( LPDPSESSIONDESC2 lpSessionDest, lpSessionDest->u1.lpszSessionName ); lpSessionDest->u1.lpszSessionName = (LPWSTR)lpStartOfFreeSpace; lpStartOfFreeSpace += sizeof(WCHAR) * - ( lstrlenW( (LPWSTR)lpSessionDest->u1.lpszSessionName ) + 1 ); + ( lstrlenW( lpSessionDest->u1.lpszSessionName ) + 1 ); } if( lpSessionSrc->u2.lpszPassword ) @@ -3387,7 +3387,7 @@ static void DP_CopySessionDesc( LPDPSESSIONDESC2 lpSessionDest, lpSessionDest->u2.lpszPassword ); lpSessionDest->u2.lpszPassword = (LPWSTR)lpStartOfFreeSpace; lpStartOfFreeSpace += sizeof(WCHAR) * - ( lstrlenW( (LPWSTR)lpSessionDest->u2.lpszPassword ) + 1 ); + ( lstrlenW( lpSessionDest->u2.lpszPassword ) + 1 ); } } }
1
0
0
0
Andrew Talbot : dnsapi: Remove unneeded casts.
by Alexandre Julliard
11 Dec '07
11 Dec '07
Module: wine Branch: master Commit: 1a1d0a3ec16ef150310e6f3a72f147bb1e1f5789 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=1a1d0a3ec16ef150310e6f3a7…
Author: Andrew Talbot <andrew.talbot(a)talbotville.com> Date: Mon Dec 10 22:03:24 2007 +0000 dnsapi: Remove unneeded casts. --- dlls/dnsapi/ns_parse.c | 4 ++-- dlls/dnsapi/query.c | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dlls/dnsapi/ns_parse.c b/dlls/dnsapi/ns_parse.c index 6786909..b5884bf 100644 --- a/dlls/dnsapi/ns_parse.c +++ b/dlls/dnsapi/ns_parse.c @@ -51,7 +51,7 @@ static void setsection(ns_msg *msg, ns_sect sect); #endif #define DNS_NS_GET16(s, cp) do { \ - register const u_char *t_cp = (const u_char *)(cp); \ + register const u_char *t_cp = (cp); \ (s) = ((WORD)t_cp[0] << 8) \ | ((WORD)t_cp[1]) \ ; \ @@ -59,7 +59,7 @@ static void setsection(ns_msg *msg, ns_sect sect); } while (0) #define DNS_NS_GET32(l, cp) do { \ - register const u_char *t_cp = (const u_char *)(cp); \ + register const u_char *t_cp = (cp); \ (l) = ((DWORD)t_cp[0] << 24) \ | ((DWORD)t_cp[1] << 16) \ | ((DWORD)t_cp[2] << 8) \ diff --git a/dlls/dnsapi/query.c b/dlls/dnsapi/query.c index 60e7456..7ca08a0 100644 --- a/dlls/dnsapi/query.c +++ b/dlls/dnsapi/query.c @@ -279,13 +279,13 @@ static DNS_STATUS dns_copy_rdata( ns_msg msg, const ns_rr *rr, DNS_RECORDA *r, W { /* FIXME: byte order? */ r->Data.KEY.wFlags = *(const WORD *)pos; pos += sizeof(WORD); - r->Data.KEY.chProtocol = *(const BYTE *)pos++; - r->Data.KEY.chAlgorithm = *(const BYTE *)pos++; + r->Data.KEY.chProtocol = *pos++; + r->Data.KEY.chAlgorithm = *pos++; size = rr->rdata + rr->rdlength - pos; for (i = 0; i < size; i++) - r->Data.KEY.Key[i] = *(const BYTE *)pos++; + r->Data.KEY.Key[i] = *pos++; *dlen = sizeof(DNS_KEY_DATA) + (size - 1) * sizeof(BYTE); break; @@ -353,8 +353,8 @@ static DNS_STATUS dns_copy_rdata( ns_msg msg, const ns_rr *rr, DNS_RECORDA *r, W /* FIXME: byte order? */ r->Data.SIG.wTypeCovered = *(const WORD *)pos; pos += sizeof(WORD); - r->Data.SIG.chAlgorithm = *(const BYTE *)pos++; - r->Data.SIG.chLabelCount = *(const BYTE *)pos++; + r->Data.SIG.chAlgorithm = *pos++; + r->Data.SIG.chLabelCount = *pos++; r->Data.SIG.dwOriginalTtl = *(const DWORD *)pos; pos += sizeof(DWORD); r->Data.SIG.dwExpiration = *(const DWORD *)pos; pos += sizeof(DWORD); r->Data.SIG.dwTimeSigned = *(const DWORD *)pos; pos += sizeof(DWORD); @@ -363,7 +363,7 @@ static DNS_STATUS dns_copy_rdata( ns_msg msg, const ns_rr *rr, DNS_RECORDA *r, W size = rr->rdata + rr->rdlength - pos; for (i = 0; i < size; i++) - r->Data.SIG.Signature[i] = *(const BYTE *)pos++; + r->Data.SIG.Signature[i] = *pos++; *dlen = sizeof(DNS_SIG_DATAA) + (size - 1) * sizeof(BYTE); break;
1
0
0
0
Jeremy Newman : improve the prev/next links on the news archive
by Jeremy Newman
11 Dec '07
11 Dec '07
Module: website Branch: master Commit: 321f17b3f5ef274ef88ed5522dd3637d18489a00 URL:
http://source.winehq.org/git/website.git/?a=commit;h=321f17b3f5ef274ef88ed5…
Author: Jeremy Newman <jnewman(a)codeweavers.com> Date: Tue Dec 11 09:53:23 2007 -0600 improve the prev/next links on the news archive --- site | 24 +++++++++++++++--------- 1 files changed, 15 insertions(+), 9 deletions(-) diff --git a/site b/site index 8294174..32a6bb8 100644 --- a/site +++ b/site @@ -160,7 +160,9 @@ function view_news ($where) $amax = 25; // where are we in news list - $x = $_GET['x']; + $x = 0; + if ($_GET['x']) + $x = $_GET['x']; // get list of news items $news = get_files($config->news_xml_path, "xml"); @@ -201,20 +203,24 @@ function view_news ($where) // prev/next links if ($where == 'archive') { + $pages = floor(($total / $amax)); + $prev_link = ""; + $next_link = ""; + // add back to first page link when not first page + if ($x != 0) + $prev_link .= $html->ahref("[First Page]","?news=archive;x=0", 'class="menuItem"')." "; // display prev link if ($x > 0) - { - $prev = ($total) - $c; - $prev_link = $html->ahref("<< Previous News","?news=archive;x=".$prev,"class=menuItem"); - } + $prev_link .= $html->ahref("<< Previous Page","?news=archive;x=".($x - $amax), 'class="menuItem"'); // display next link if (($x + $amax) < $total) { - $next = $x + $amax; - $next_link .= $html->ahref("More News >>","?news=archive;x=".$next,"class=menuItem"); - } + $next_link .= $html->ahref("Next Page >>","?news=archive;x=".($x + $amax) , 'class="menuItem"'); + // add jump to last page link + $next_link .= " ".$html->ahref("[Last Page]","?news=archive;x=".($pages * $amax) , 'class="menuItem"'); + } // add prev/next links - $news_body .= $html->p($html->div($prev_link.' '.$next_link, 'align=center')); + $news_body .= $html->p($html->div($prev_link.' '.$next_link, 'align="center"')); } // return the finished body
1
0
0
0
Jeremy Newman : override php setting for input var delimiter
by Jeremy Newman
11 Dec '07
11 Dec '07
Module: website Branch: master Commit: b6ed075556112f1f565e77507012f544a75ce298 URL:
http://source.winehq.org/git/website.git/?a=commit;h=b6ed075556112f1f565e77…
Author: Jeremy Newman <jnewman(a)codeweavers.com> Date: Tue Dec 11 09:52:58 2007 -0600 override php setting for input var delimiter --- .htaccess | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/.htaccess b/.htaccess index 119fdf8..b79e7b0 100644 --- a/.htaccess +++ b/.htaccess @@ -10,6 +10,10 @@ ErrorDocument 404
http://www.winehq.org/site/404
# Tell PHP how we want to handle global vars php_value register_globals 0 +# We want to use ";" as variable seperator (more XML compliant) +php_value arg_separator.output ";" +php_value arg_separator.input ";&" + # force the php to accept PATH_INFO <Files ~ (site)$> AcceptPathInfo On
1
0
0
0
Jeremy Newman : adding RSS news link
by Jeremy Newman
10 Dec '07
10 Dec '07
Module: website Branch: master Commit: f58cce7836b2f8666b4bf26ebc9674e1ee630a0b URL:
http://source.winehq.org/git/website.git/?a=commit;h=f58cce7836b2f8666b4bf2…
Author: Jeremy Newman <jnewman(a)codeweavers.com> Date: Mon Dec 10 15:04:35 2007 -0600 adding RSS news link --- images/feed.gif | Bin 0 -> 652 bytes include/themes/winehq/home_page.template | 5 ++++- winehq_styles.css | 16 ++++++++++++++++ 3 files changed, 20 insertions(+), 1 deletions(-) diff --git a/images/feed.gif b/images/feed.gif new file mode 100644 index 0000000..b0e4adf Binary files /dev/null and b/images/feed.gif differ diff --git a/include/themes/winehq/home_page.template b/include/themes/winehq/home_page.template index f38562f..58bb25e 100644 --- a/include/themes/winehq/home_page.template +++ b/include/themes/winehq/home_page.template @@ -1,8 +1,11 @@ <table width="100%" border="0" cellpadding="0" cellspacing="0"> -<tr valign=top align=left> +<tr valign="top" align="left"> <td width="70%"> {$about_box} {$news_box} + <ul class="rss"> + <li><a href="{$root}/?rss=1">WineHQ News RSS Feed</a></li> + </ul> </td> <td width="30%"> {$latest_box} diff --git a/winehq_styles.css b/winehq_styles.css index f9e024f..5cf3bcc 100644 --- a/winehq_styles.css +++ b/winehq_styles.css @@ -90,6 +90,22 @@ p.indent { padding-left: 1em; padding-right: 1em;} .rowtitle { background-color: black; color: white; font-weight: bold; } .commandWidth { width: 500px; padding: 5px; } +/* RSS Feed Links */ +ul.rss { + list-style: none; + padding: 0 0 0 2px; + margin: 0; +} +ul.rss li { + background: url("./images/feed.gif") no-repeat 0 1px; + padding: 0px 0 0px 0px; + height: 18px; +} +ul.rss li a { + font-size: 10px; + padding: 0 0 0 18px; +} + /* Generic Buttons */ .button { background-color: #A50D0D; color: #ffffff; font-family: Sans-Serif; font-size: 12px; padding: 0; } .searchInput { background-color: #FFFFFF; color: #000000; font-family: Sans-Serif; font-size: 12px; padding: 0; }
1
0
0
0
← Newer
1
...
47
48
49
50
51
52
53
...
83
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
Results per page:
10
25
50
100
200