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
Alexandre Julliard : dlls: Merged the make_dlls script into the global make_makefiles.
by Alexandre Julliard
24 Dec '06
24 Dec '06
Module: wine Branch: master Commit: 0134db6e9b900585492e3f745ed80ab799ff2442 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=0134db6e9b900585492e3f745…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Sun Dec 24 14:05:12 2006 +0100 dlls: Merged the make_dlls script into the global make_makefiles. --- dlls/.gitignore | 2 +- dlls/Makefile.in | 2 +- dlls/make_dlls | 387 -------------------------------------------------- tools/make_makefiles | 269 ++++++++++++++++++++++++++++++++++- 4 files changed, 267 insertions(+), 393 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=0134db6e9b900585492e3…
1
0
0
0
Alex Villacís Lasso : oleaut32: Fix tests for redundant headers in OLEPicture load from IStream.
by Alexandre Julliard
24 Dec '06
24 Dec '06
Module: wine Branch: master Commit: 8b95d95eb8f854f7126af1b6b2474f65e738ccb1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=8b95d95eb8f854f7126af1b6b…
Author: Alex Villacís Lasso <a_villacis(a)palosanto.com> Date: Sat Dec 23 22:02:33 2006 -0500 oleaut32: Fix tests for redundant headers in OLEPicture load from IStream. --- dlls/oleaut32/tests/olepicture.c | 54 +++++++++++++++++++------------------- 1 files changed, 27 insertions(+), 27 deletions(-) diff --git a/dlls/oleaut32/tests/olepicture.c b/dlls/oleaut32/tests/olepicture.c index 8e653ce..64f225b 100644 --- a/dlls/oleaut32/tests/olepicture.c +++ b/dlls/oleaut32/tests/olepicture.c @@ -191,12 +191,13 @@ test_pic(const unsigned char *imgdata, u LARGE_INTEGER seekto; ULARGE_INTEGER newpos1; DWORD * header; - unsigned int i; + unsigned int i,j; /* Let the fun begin */ hglob = GlobalAlloc (0, imgsize); data = GlobalLock (hglob); memcpy(data, imgdata, imgsize); + GlobalUnlock(hglob); data = NULL; hres = CreateStreamOnHGlobal (hglob, FALSE, &stream); ok (hres == S_OK, "createstreamonhglobal failed? doubt it... hres 0x%08x\n", hres); @@ -210,34 +211,29 @@ test_pic(const unsigned char *imgdata, u /* again with Non Statable and Non Seekable stream */ stream = (LPSTREAM)NoStatStreamImpl_Construct(hglob); + hglob = 0; /* Non-statable impl always deletes on release */ test_pic_with_stream(stream, 0); IStream_Release(stream); - - /* free memory */ - GlobalUnlock(hglob); - GlobalFree(hglob); - - /* more fun!!! */ - hglob = GlobalAlloc (0, imgsize + 8 * (2 * sizeof(DWORD))); - data = GlobalLock (hglob); - header = (DWORD *)data; - - /* multiple copies of header */ - memcpy(data,"lt\0\0",4); - header[1] = imgsize; - memcpy(&(header[2]), header, 2 * sizeof(DWORD)); - memcpy(&(header[4]), header, 4 * sizeof(DWORD)); - memcpy(&(header[8]), header, 8 * sizeof(DWORD)); - - memcpy(data + 8 * (2 * sizeof(DWORD)), imgdata, imgsize); - for (i = 1; i <= 8; i++) { + /* more fun!!! */ + hglob = GlobalAlloc (0, imgsize + i * (2 * sizeof(DWORD))); + data = GlobalLock (hglob); + header = (DWORD *)data; + + /* multiple copies of header */ + memcpy(data,"lt\0\0",4); + header[1] = imgsize; + for (j = 2; j <= i; j++) { + memcpy(&(header[2 * (j - 1)]), header, 2 * sizeof(DWORD)); + } + memcpy(data + i * (2 * sizeof(DWORD)), imgdata, imgsize); + GlobalUnlock(hglob); data = NULL; + hres = CreateStreamOnHGlobal (hglob, FALSE, &stream); ok (hres == S_OK, "createstreamonhglobal failed? doubt it... hres 0x%08x\n", hres); memset(&seekto,0,sizeof(seekto)); - seekto.u.LowPart = (8 - i) * (2 * sizeof(DWORD)); hres = IStream_Seek(stream,seekto,SEEK_CUR,&newpos1); ok (hres == S_OK, "istream seek failed? doubt it... hres 0x%08x\n", hres); test_pic_with_stream(stream, imgsize); @@ -246,14 +242,11 @@ test_pic(const unsigned char *imgdata, u /* again with Non Statable and Non Seekable stream */ stream = (LPSTREAM)NoStatStreamImpl_Construct(hglob); + hglob = 0; /* Non-statable impl always deletes on release */ test_pic_with_stream(stream, 0); - IStream_Release(stream); + IStream_Release(stream); } - - /* free memory */ - GlobalUnlock(hglob); - GlobalFree(hglob); } static void test_empty_image(void) { @@ -670,6 +663,13 @@ static HRESULT WINAPI NoStatStreamImpl_C } static const IStreamVtbl NoStatStreamImpl_Vtbl; +/* + Build an object that implements IStream, without IStream_Stat capabilities. + Receives a memory handle with data buffer. If memory handle is non-null, + it is assumed to be unlocked, otherwise an internal memory handle is allocated. + In any case the object takes ownership of memory handle and will free it on + object release. + */ static NoStatStreamImpl* NoStatStreamImpl_Construct(HGLOBAL hGlobal) { NoStatStreamImpl* newStream; @@ -678,7 +678,7 @@ static NoStatStreamImpl* NoStatStreamImp if (newStream!=0) { newStream->lpVtbl = &NoStatStreamImpl_Vtbl; - newStream->ref = 0; + newStream->ref = 1; newStream->supportHandle = hGlobal; if (!newStream->supportHandle)
1
0
0
0
Jacek Caban : itss: Added ITSProtocol stub implementation.
by Alexandre Julliard
24 Dec '06
24 Dec '06
Module: wine Branch: master Commit: 7d95f0c4dac013069032ff647ad57349b5fdcac0 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=7d95f0c4dac013069032ff647…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Sun Dec 24 01:22:30 2006 +0100 itss: Added ITSProtocol stub implementation. --- dlls/itss/Makefile.in | 1 + dlls/itss/itss.c | 3 + dlls/itss/itsstor.h | 3 + dlls/itss/protocol.c | 201 +++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 208 insertions(+), 0 deletions(-) diff --git a/dlls/itss/Makefile.in b/dlls/itss/Makefile.in index 1485dfd..65f8967 100644 --- a/dlls/itss/Makefile.in +++ b/dlls/itss/Makefile.in @@ -12,6 +12,7 @@ C_SRCS = \ lzx.c \ itss.c \ moniker.c \ + protocol.c \ storage.c RC_SRCS = rsrc.rc diff --git a/dlls/itss/itss.c b/dlls/itss/itss.c index 683b02e..cca4f61 100644 --- a/dlls/itss/itss.c +++ b/dlls/itss/itss.c @@ -145,6 +145,7 @@ static const IClassFactoryVtbl ITSSCF_Vt static const IClassFactoryImpl ITStorage_factory = { &ITSSCF_Vtbl, ITSS_create }; static const IClassFactoryImpl MSITStore_factory = { &ITSSCF_Vtbl, ITS_IParseDisplayName_create }; +static const IClassFactoryImpl ITSProtocol_factory = { &ITSSCF_Vtbl, ITSProtocol_create }; /*********************************************************************** * DllGetClassObject (ITSS.@) @@ -159,6 +160,8 @@ HRESULT WINAPI DllGetClassObject(REFCLSI factory = &ITStorage_factory; else if (IsEqualGUID(&CLSID_MSITStore, rclsid)) factory = &MSITStore_factory; + else if (IsEqualGUID(&CLSID_ITSProtocol, rclsid)) + factory = &ITSProtocol_factory; else { FIXME("%s: no class found.\n", debugstr_guid(rclsid)); diff --git a/dlls/itss/itsstor.h b/dlls/itss/itsstor.h index 736dd88..d134725 100644 --- a/dlls/itss/itsstor.h +++ b/dlls/itss/itsstor.h @@ -35,9 +35,12 @@ extern HRESULT ITS_IParseDisplayName_cre IUnknown *pUnkOuter, LPVOID *ppObj); +extern HRESULT ITSProtocol_create(IUnknown *pUnkOuter, LPVOID *ppobj); + extern LONG dll_count; static inline void ITSS_LockModule(void) { InterlockedIncrement(&dll_count); } static inline void ITSS_UnlockModule(void) { InterlockedDecrement(&dll_count); } +#define DEFINE_THIS(cls,ifc,iface) ((cls*)((BYTE*)(iface)-offsetof(cls,lp ## ifc ## Vtbl))) #endif /* __WINE_ITS_STORAGE_PRIVATE__ */ diff --git a/dlls/itss/protocol.c b/dlls/itss/protocol.c new file mode 100644 index 0000000..5a192af --- /dev/null +++ b/dlls/itss/protocol.c @@ -0,0 +1,201 @@ +/* + * Copyright 2006 Jacek Caban for CodeWeavers + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include <stdarg.h> + +#define COBJMACROS + +#include "windef.h" +#include "winbase.h" +#include "winuser.h" +#include "ole2.h" +#include "urlmon.h" +#include "itsstor.h" + +#include "wine/debug.h" + +WINE_DEFAULT_DEBUG_CHANNEL(itss); + +typedef struct { + const IInternetProtocolVtbl *lpInternetProtocolVtbl; + LONG ref; +} ITSProtocol; + +#define PROTOCOL_THIS(iface) DEFINE_THIS(ITSProtocol, InternetProtocol, iface) + +#define PROTOCOL(x) ((IInternetProtocol*) &(x)->lpInternetProtocolVtbl) + +static HRESULT WINAPI ITSProtocol_QueryInterface(IInternetProtocol *iface, REFIID riid, void **ppv) +{ + ITSProtocol *This = PROTOCOL_THIS(iface); + + *ppv = NULL; + if(IsEqualGUID(&IID_IUnknown, riid)) { + TRACE("(%p)->(IID_IUnknown %p)\n", This, ppv); + *ppv = PROTOCOL(This); + }else if(IsEqualGUID(&IID_IInternetProtocolRoot, riid)) { + TRACE("(%p)->(IID_IInternetProtocolRoot %p)\n", This, ppv); + *ppv = PROTOCOL(This); + }else if(IsEqualGUID(&IID_IInternetProtocol, riid)) { + TRACE("(%p)->(IID_IInternetProtocol %p)\n", This, ppv); + *ppv = PROTOCOL(This); + } + + if(*ppv) { + IInternetProtocol_AddRef(iface); + return S_OK; + } + + WARN("not supported interface %s\n", debugstr_guid(riid)); + return E_NOINTERFACE; +} + +static ULONG WINAPI ITSProtocol_AddRef(IInternetProtocol *iface) +{ + ITSProtocol *This = PROTOCOL_THIS(iface); + LONG ref = InterlockedIncrement(&This->ref); + TRACE("(%p) ref=%d\n", This, ref); + return ref; +} + +static ULONG WINAPI ITSProtocol_Release(IInternetProtocol *iface) +{ + ITSProtocol *This = PROTOCOL_THIS(iface); + LONG ref = InterlockedDecrement(&This->ref); + + TRACE("(%p) ref=%d\n", This, ref); + + if(!ref) { + HeapFree(GetProcessHeap(), 0, This); + ITSS_UnlockModule(); + } + + return ref; +} + +static HRESULT WINAPI ITSProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl, + IInternetProtocolSink *pOIProtSink, IInternetBindInfo *pOIBindInfo, + DWORD grfPI, DWORD dwReserved) +{ + ITSProtocol *This = PROTOCOL_THIS(iface); + FIXME("(%p)->(%s %p %p %08x %d)\n", This, debugstr_w(szUrl), pOIProtSink, + pOIBindInfo, grfPI, dwReserved); + return E_NOTIMPL; +} + +static HRESULT WINAPI ITSProtocol_Continue(IInternetProtocol *iface, PROTOCOLDATA *pProtocolData) +{ + ITSProtocol *This = PROTOCOL_THIS(iface); + FIXME("(%p)->(%p)\n", This, pProtocolData); + return E_NOTIMPL; +} + +static HRESULT WINAPI ITSProtocol_Abort(IInternetProtocol *iface, HRESULT hrReason, + DWORD dwOptions) +{ + ITSProtocol *This = PROTOCOL_THIS(iface); + FIXME("(%p)->(%08x %08x)\n", This, hrReason, dwOptions); + return E_NOTIMPL; +} + +static HRESULT WINAPI ITSProtocol_Terminate(IInternetProtocol *iface, DWORD dwOptions) +{ + ITSProtocol *This = PROTOCOL_THIS(iface); + FIXME("(%p)->(%08x)\n", This, dwOptions); + return E_NOTIMPL; +} + +static HRESULT WINAPI ITSProtocol_Suspend(IInternetProtocol *iface) +{ + ITSProtocol *This = PROTOCOL_THIS(iface); + FIXME("(%p)\n", This); + return E_NOTIMPL; +} + +static HRESULT WINAPI ITSProtocol_Resume(IInternetProtocol *iface) +{ + ITSProtocol *This = PROTOCOL_THIS(iface); + FIXME("(%p)\n", This); + return E_NOTIMPL; +} + +static HRESULT WINAPI ITSProtocol_Read(IInternetProtocol *iface, void *pv, + ULONG cb, ULONG *pcbRead) +{ + ITSProtocol *This = PROTOCOL_THIS(iface); + FIXME("(%p)->(%p %u %p)\n", This, pv, cb, pcbRead); + return E_NOTIMPL; +} + +static HRESULT WINAPI ITSProtocol_Seek(IInternetProtocol *iface, LARGE_INTEGER dlibMove, + DWORD dwOrgin, ULARGE_INTEGER *plibNewPosition) +{ + ITSProtocol *This = PROTOCOL_THIS(iface); + FIXME("(%p)->(%d %d %p)\n", This, dlibMove.u.LowPart, dwOrgin, plibNewPosition); + return E_NOTIMPL; +} + +static HRESULT WINAPI ITSProtocol_LockRequest(IInternetProtocol *iface, DWORD dwOptions) +{ + ITSProtocol *This = PROTOCOL_THIS(iface); + FIXME("(%p)->(%08x)\n", This, dwOptions); + return E_NOTIMPL; +} + +static HRESULT WINAPI ITSProtocol_UnlockRequest(IInternetProtocol *iface) +{ + ITSProtocol *This = PROTOCOL_THIS(iface); + FIXME("(%p)\n", This); + return E_NOTIMPL; +} + +#undef PROTOCOL_THIS + +static const IInternetProtocolVtbl ITSProtocolVtbl = { + ITSProtocol_QueryInterface, + ITSProtocol_AddRef, + ITSProtocol_Release, + ITSProtocol_Start, + ITSProtocol_Continue, + ITSProtocol_Abort, + ITSProtocol_Terminate, + ITSProtocol_Suspend, + ITSProtocol_Resume, + ITSProtocol_Read, + ITSProtocol_Seek, + ITSProtocol_LockRequest, + ITSProtocol_UnlockRequest +}; + +HRESULT ITSProtocol_create(IUnknown *pUnkOuter, LPVOID *ppobj) +{ + ITSProtocol *ret; + + TRACE("(%p %p)\n", pUnkOuter, ppobj); + + ITSS_LockModule(); + + ret = HeapAlloc(GetProcessHeap(), 0, sizeof(ITSProtocol)); + + ret->lpInternetProtocolVtbl = &ITSProtocolVtbl; + ret->ref = 1; + + *ppobj = PROTOCOL(ret); + + return S_OK; +}
1
0
0
0
Jacek Caban : itss: DllCanUnloadNow code clean up.
by Alexandre Julliard
24 Dec '06
24 Dec '06
Module: wine Branch: master Commit: 162b3350e13a0b861a5a1ae770247fd49cd38e6c URL:
http://source.winehq.org/git/wine.git/?a=commit;h=162b3350e13a0b861a5a1ae77…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Sat Dec 23 23:51:55 2006 +0100 itss: DllCanUnloadNow code clean up. --- dlls/itss/itss.c | 12 ++++++------ dlls/itss/itsstor.h | 5 +++++ dlls/itss/moniker.c | 10 ++++------ dlls/itss/storage.c | 17 ++++++++--------- 4 files changed, 23 insertions(+), 21 deletions(-) diff --git a/dlls/itss/itss.c b/dlls/itss/itss.c index 742465d..683b02e 100644 --- a/dlls/itss/itss.c +++ b/dlls/itss/itss.c @@ -93,13 +93,13 @@ ITSSCF_QueryInterface(LPCLASSFACTORY ifa static ULONG WINAPI ITSSCF_AddRef(LPCLASSFACTORY iface) { - InterlockedIncrement(&dll_count); + ITSS_LockModule(); return 2; } static ULONG WINAPI ITSSCF_Release(LPCLASSFACTORY iface) { - InterlockedDecrement(&dll_count); + ITSS_UnlockModule(); return 1; } @@ -127,9 +127,9 @@ static HRESULT WINAPI ITSSCF_LockServer( TRACE("(%p)->(%d)\n", iface, dolock); if (dolock) - InterlockedIncrement(&dll_count); + ITSS_LockModule(); else - InterlockedDecrement(&dll_count); + ITSS_UnlockModule(); return S_OK; } @@ -210,7 +210,7 @@ static ULONG WINAPI ITStorageImpl_Releas if (ref == 0) { HeapFree(GetProcessHeap(), 0, This); - InterlockedDecrement(&dll_count); + ITSS_UnlockModule(); } return ref; @@ -364,8 +364,8 @@ static HRESULT ITSS_create(IUnknown *pUn TRACE("-> %p\n", its); *ppObj = (LPVOID) its; - InterlockedIncrement(&dll_count); + ITSS_LockModule(); return S_OK; } diff --git a/dlls/itss/itsstor.h b/dlls/itss/itsstor.h index af9fec4..736dd88 100644 --- a/dlls/itss/itsstor.h +++ b/dlls/itss/itsstor.h @@ -35,4 +35,9 @@ extern HRESULT ITS_IParseDisplayName_cre IUnknown *pUnkOuter, LPVOID *ppObj); +extern LONG dll_count; +static inline void ITSS_LockModule(void) { InterlockedIncrement(&dll_count); } +static inline void ITSS_UnlockModule(void) { InterlockedDecrement(&dll_count); } + + #endif /* __WINE_ITS_STORAGE_PRIVATE__ */ diff --git a/dlls/itss/moniker.c b/dlls/itss/moniker.c index 1a9401c..5149a14 100644 --- a/dlls/itss/moniker.c +++ b/dlls/itss/moniker.c @@ -44,8 +44,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(itss); -extern LONG dll_count; - /*****************************************************************************/ typedef struct { @@ -91,7 +89,7 @@ static ULONG WINAPI ITS_IMonikerImpl_Rel if (ref == 0) { HeapFree(GetProcessHeap(), 0, This); - InterlockedDecrement(&dll_count); + ITSS_UnlockModule(); } return ref; @@ -369,8 +367,8 @@ static HRESULT ITS_IMoniker_create( IMon TRACE("-> %p %s %s\n", itsmon, debugstr_w(itsmon->szFile), debugstr_w(itsmon->szHtml) ); *ppObj = (IMoniker*) itsmon; - InterlockedIncrement(&dll_count); + ITSS_LockModule(); return S_OK; } @@ -416,7 +414,7 @@ static ULONG WINAPI ITS_IParseDisplayNam if (ref == 0) { HeapFree(GetProcessHeap(), 0, This); - InterlockedDecrement(&dll_count); + ITSS_UnlockModule(); } return ref; @@ -480,7 +478,7 @@ HRESULT ITS_IParseDisplayName_create(IUn TRACE("-> %p\n", its); *ppObj = (LPVOID) its; - InterlockedIncrement(&dll_count); + ITSS_LockModule(); return S_OK; } diff --git a/dlls/itss/storage.c b/dlls/itss/storage.c index 1275808..d2e346c 100644 --- a/dlls/itss/storage.c +++ b/dlls/itss/storage.c @@ -45,8 +45,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(itss); -extern LONG dll_count; - /************************************************************************/ typedef struct _ITSS_IStorageImpl @@ -128,7 +126,7 @@ static ULONG WINAPI ITSS_IEnumSTATSTG_Re This->first = t; } HeapFree(GetProcessHeap(), 0, This); - InterlockedDecrement(&dll_count); + ITSS_UnlockModule(); } return ref; @@ -254,8 +252,8 @@ static IEnumSTATSTG_Impl *ITSS_create_en stgenum->first = NULL; stgenum->last = NULL; stgenum->current = NULL; - InterlockedIncrement(&dll_count); + ITSS_LockModule(); TRACE(" -> %p\n", stgenum ); return stgenum; @@ -299,7 +297,7 @@ static ULONG WINAPI ITSS_IStorageImpl_Re if (ref == 0) { HeapFree(GetProcessHeap(), 0, This); - InterlockedDecrement(&dll_count); + ITSS_UnlockModule(); } return ref; @@ -574,8 +572,8 @@ static HRESULT ITSS_create_chm_storage( strcpyW( stg->dir, dir ); *ppstgOpen = (IStorage*) stg; - InterlockedIncrement(&dll_count); + ITSS_LockModule(); return S_OK; } @@ -638,8 +636,8 @@ static ULONG WINAPI ITSS_IStream_Release if (ref == 0) { IStorage_Release( (IStorage*) This->stg ); - HeapFree(GetProcessHeap(), 0, This); - InterlockedDecrement(&dll_count); + HeapFree(GetProcessHeap(), 0, This); + ITSS_UnlockModule(); } return ref; @@ -825,7 +823,8 @@ static IStream_Impl *ITSS_create_stream( memcpy( &stm->ui, ui, sizeof stm->ui ); stm->stg = stg; IStorage_AddRef( (IStorage*) stg ); - InterlockedIncrement(&dll_count); + + ITSS_LockModule(); TRACE(" -> %p\n", stm );
1
0
0
0
Jacek Caban : itss: Move registration code to inf file and add missing registry.
by Alexandre Julliard
24 Dec '06
24 Dec '06
Module: wine Branch: master Commit: b79fa300adfed75ad9d601cf2578dfbc540d72e8 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b79fa300adfed75ad9d601cf2…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Sat Dec 23 23:50:53 2006 +0100 itss: Move registration code to inf file and add missing registry. --- dlls/itss/Makefile.in | 5 +- dlls/itss/itss.c | 72 +++++++ dlls/itss/itss.inf | 79 +++++++ dlls/itss/regsvr.c | 563 ------------------------------------------------- dlls/itss/rsrc.rc | 19 ++ include/wine/itss.idl | 2 + 6 files changed, 176 insertions(+), 564 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=b79fa300adfed75ad9d60…
1
0
0
0
Jacek Caban : itss: Rename CLSID_ITSProtocol to CLSID_MSITStore.
by Alexandre Julliard
24 Dec '06
24 Dec '06
Module: wine Branch: master Commit: e6fd4d42f09511bda400931c53685260b30d82f1 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=e6fd4d42f09511bda400931c5…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Sat Dec 23 23:48:57 2006 +0100 itss: Rename CLSID_ITSProtocol to CLSID_MSITStore. ITSProtocol is a different object. --- dlls/itss/itss.c | 6 +++--- dlls/itss/regsvr.c | 2 +- include/wine/itss.idl | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/itss/itss.c b/dlls/itss/itss.c index 1448632..33b1608 100644 --- a/dlls/itss/itss.c +++ b/dlls/itss/itss.c @@ -141,7 +141,7 @@ static const IClassFactoryVtbl ITSSCF_Vt }; static const IClassFactoryImpl ITStorage_factory = { &ITSSCF_Vtbl, ITSS_create }; -static const IClassFactoryImpl ITSProtocol_factory = { &ITSSCF_Vtbl, ITS_IParseDisplayName_create }; +static const IClassFactoryImpl MSITStore_factory = { &ITSSCF_Vtbl, ITS_IParseDisplayName_create }; /*********************************************************************** * DllGetClassObject (ITSS.@) @@ -154,8 +154,8 @@ HRESULT WINAPI DllGetClassObject(REFCLSI if (IsEqualGUID(&CLSID_ITStorage, rclsid)) factory = &ITStorage_factory; - else if (IsEqualGUID(&CLSID_ITSProtocol, rclsid)) - factory = &ITSProtocol_factory; + else if (IsEqualGUID(&CLSID_MSITStore, rclsid)) + factory = &MSITStore_factory; else { FIXME("%s: no class found.\n", debugstr_guid(rclsid)); diff --git a/dlls/itss/regsvr.c b/dlls/itss/regsvr.c index 675af8a..bac6ac1 100644 --- a/dlls/itss/regsvr.c +++ b/dlls/itss/regsvr.c @@ -513,7 +513,7 @@ static struct regsvr_coclass const cocla "itss.dll", "Both" }, - { &CLSID_ITSProtocol, + { &CLSID_MSITStore, "Microsoft InforTech Protocol for IE 3.0", NULL, "itss.dll", diff --git a/include/wine/itss.idl b/include/wine/itss.idl index 8566855..b613b6b 100644 --- a/include/wine/itss.idl +++ b/include/wine/itss.idl @@ -89,5 +89,5 @@ interface IITStorage : IUnknown [in] ECompactionLev iLev); } -cpp_quote("DEFINE_GUID(CLSID_ITStorage,0x5d02926a,0x212e,0x11d0,0x9d,0xf9,0x00,0xa0,0xc9,0x22,0xe6,0xec );") -cpp_quote("DEFINE_GUID(CLSID_ITSProtocol,0x9d148290,0xb9c8,0x11d0,0xa4,0xcc,0x00,0x00,0xf8,0x01,0x49,0xf6);") +cpp_quote("DEFINE_GUID(CLSID_ITStorage,0x5d02926a,0x212e,0x11d0,0x9d,0xf9,0x00,0xa0,0xc9,0x22,0xe6,0xec);") +cpp_quote("DEFINE_GUID(CLSID_MSITStore,0x9d148290,0xb9c8,0x11d0,0xa4,0xcc,0x00,0x00,0xf8,0x01,0x49,0xf6);")
1
0
0
0
Jacek Caban : itss: DllUnregisterServer is not a stub.
by Alexandre Julliard
24 Dec '06
24 Dec '06
Module: wine Branch: master Commit: ab4822ec735449c26993d6a4cedea169704ffaac URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ab4822ec735449c26993d6a4c…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Sat Dec 23 23:47:42 2006 +0100 itss: DllUnregisterServer is not a stub. --- dlls/itss/itss.spec | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/itss/itss.spec b/dlls/itss/itss.spec index a5e0c57..7437ca8 100644 --- a/dlls/itss/itss.spec +++ b/dlls/itss/itss.spec @@ -3,4 +3,4 @@ @ stub DllInstall @ stdcall -private DllMain(long long ptr) @ stdcall -private DllRegisterServer() -@ stub DllUnregisterServer +@ stdcall -private DllUnregisterServer()
1
0
0
0
Hans Leidekker : usp10: Implement ScriptString_pLogAttr.
by Alexandre Julliard
24 Dec '06
24 Dec '06
Module: wine Branch: master Commit: cd6fe7dfa79f2d91bbf07a5000ea509419ceb2b5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=cd6fe7dfa79f2d91bbf07a500…
Author: Hans Leidekker <hans(a)it.vu.nl> Date: Sat Dec 23 17:19:31 2006 +0100 usp10: Implement ScriptString_pLogAttr. --- dlls/usp10/usp10.c | 27 +++++++++++++++++++++++++++ dlls/usp10/usp10.spec | 2 +- 2 files changed, 28 insertions(+), 1 deletions(-) diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c index 4791677..99b057e 100644 --- a/dlls/usp10/usp10.c +++ b/dlls/usp10/usp10.c @@ -165,6 +165,7 @@ typedef struct { SCRIPT_ITEM* pItem; int numItems; StringGlyphs* glyphs; + SCRIPT_LOGATTR* logattrs; SIZE* sz; } StringAnalysis; @@ -589,6 +590,9 @@ HRESULT WINAPI ScriptStringAnalyse(HDC h psState, analysis->pItem, &analysis->numItems); } + if ((analysis->logattrs = HeapAlloc(GetProcessHeap(), 0, sizeof(SCRIPT_LOGATTR) * cString))) + ScriptBreak(pString, cString, (SCRIPT_STRING_ANALYSIS)analysis, analysis->logattrs); + analysis->glyphs = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(StringGlyphs)*analysis->numItems); sc = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(SCRIPT_CACHE)); @@ -786,6 +790,7 @@ HRESULT WINAPI ScriptStringFree(SCRIPT_S HeapFree(GetProcessHeap(), 0, analysis->glyphs); HeapFree(GetProcessHeap(), 0, analysis->pItem); + HeapFree(GetProcessHeap(), 0, analysis->logattrs); HeapFree(GetProcessHeap(), 0, analysis->sz); HeapFree(GetProcessHeap(), 0, analysis); @@ -1538,3 +1543,25 @@ const SIZE * WINAPI ScriptString_pSize(S } return analysis->sz; } + +/*********************************************************************** + * ScriptString_pLogAttr (USP10.@) + * + * Retrieve logical attributes of an analysed string. + * + * PARAMS + * ssa [I] string analysis. + * + * RETURNS + * Success: Pointer to an array of SCRIPT_LOGATTR structures. + * Failure: NULL + */ +const SCRIPT_LOGATTR * WINAPI ScriptString_pLogAttr(SCRIPT_STRING_ANALYSIS ssa) +{ + StringAnalysis *analysis = ssa; + + TRACE("(%p)\n", ssa); + + if (!analysis) return NULL; + return analysis->logattrs; +} diff --git a/dlls/usp10/usp10.spec b/dlls/usp10/usp10.spec index 73ea447..83e97ba 100644 --- a/dlls/usp10/usp10.spec +++ b/dlls/usp10/usp10.spec @@ -25,7 +25,7 @@ @ stdcall ScriptStringOut(ptr long long long ptr long long long) @ stdcall ScriptStringValidate(ptr) @ stdcall ScriptStringXtoCP(ptr long ptr ptr) -@ stub ScriptString_pLogAttr +@ stdcall ScriptString_pLogAttr(ptr) @ stdcall ScriptString_pSize(ptr) @ stub ScriptString_pcOutChars @ stdcall ScriptTextOut(ptr ptr long long long ptr ptr ptr long ptr long ptr ptr ptr)
1
0
0
0
Hans Leidekker : usp10: Match output of WinXP for ScriptGetProperties.
by Alexandre Julliard
24 Dec '06
24 Dec '06
Module: wine Branch: master Commit: 960372f2febed5127c486e2f6e3f85f05caa1c69 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=960372f2febed5127c486e2f6…
Author: Hans Leidekker <hans(a)it.vu.nl> Date: Sat Dec 23 15:19:30 2006 +0100 usp10: Match output of WinXP for ScriptGetProperties. --- dlls/usp10/tests/usp10.c | 21 ++++++ dlls/usp10/usp10.c | 158 +++++++++++++++++++++++++++++++++++----------- 2 files changed, 141 insertions(+), 38 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=960372f2febed5127c486…
1
0
0
0
Hans Leidekker : usp10: Improve the stub for ScriptBreak.
by Alexandre Julliard
24 Dec '06
24 Dec '06
Module: wine Branch: master Commit: 02d30df085515e746e475fef10bd7be8b92c1106 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=02d30df085515e746e475fef1…
Author: Hans Leidekker <hans(a)it.vu.nl> Date: Sat Dec 23 11:50:47 2006 +0100 usp10: Improve the stub for ScriptBreak. --- dlls/usp10/usp10.c | 28 ++++++++++++++++++++++++---- 1 files changed, 24 insertions(+), 4 deletions(-) diff --git a/dlls/usp10/usp10.c b/dlls/usp10/usp10.c index 85fc82d..a1555d8 100644 --- a/dlls/usp10/usp10.c +++ b/dlls/usp10/usp10.c @@ -32,6 +32,7 @@ #include "usp10.h" #include "wine/debug.h" +#include "wine/unicode.h" /** * some documentation here: @@ -798,13 +799,32 @@ HRESULT WINAPI ScriptXtoCP(int iX, /*********************************************************************** * ScriptBreak (USP10.@) * + * Retrieve line break information. + * + * PARAMS + * chars [I] Array of characters. + * sa [I] String analysis. + * la [I] Array of logical attribute structures. + * + * RETURNS + * Success: S_OK + * Failure: S_FALSE */ -HRESULT WINAPI ScriptBreak(const WCHAR *pwcChars, int cChars, const SCRIPT_ANALYSIS *psa, - SCRIPT_LOGATTR *psla) +HRESULT WINAPI ScriptBreak(const WCHAR *chars, int count, const SCRIPT_ANALYSIS *sa, SCRIPT_LOGATTR *la) { - FIXME("(%p,%d,%p,%p): stub\n", - pwcChars, cChars, psa, psla); + unsigned int i; + FIXME("(%p, %d, %p, %p) stub\n", chars, count, sa, la); + + if (!la) return S_FALSE; + + for (i = 0; i < count; i++) + { + memset(&la[i], 0, sizeof(SCRIPT_LOGATTR)); + + la[i].fWhiteSpace = isspaceW(chars[i]); + la[i].fCharStop = 1; + } return S_OK; }
1
0
0
0
← Newer
1
...
12
13
14
15
16
17
18
...
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