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
July
June
May
April
March
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
April 2008
----- 2025 -----
July 2025
June 2025
May 2025
April 2025
March 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
1278 discussions
Start a n
N
ew thread
Alexandre Julliard : winex11: Separate the XIM process-wide setup from the IME creation.
by Alexandre Julliard
11 Apr '08
11 Apr '08
Module: wine Branch: master Commit: 5c30e9ae00d4666b1ae0666d97275179b9f4fd51 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5c30e9ae00d4666b1ae0666d9…
Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Apr 10 12:29:01 2008 +0200 winex11: Separate the XIM process-wide setup from the IME creation. --- dlls/winex11.drv/x11drv.h | 3 +- dlls/winex11.drv/x11drv_main.c | 7 +++-- dlls/winex11.drv/xim.c | 46 +++++++++++++++++++++++++--------------
…
[View More]
3 files changed, 35 insertions(+), 21 deletions(-) diff --git a/dlls/winex11.drv/x11drv.h b/dlls/winex11.drv/x11drv.h index 20dd91c..d6b2b20 100644 --- a/dlls/winex11.drv/x11drv.h +++ b/dlls/winex11.drv/x11drv.h @@ -274,8 +274,9 @@ extern Drawable get_glxdrawable(X11DRV_PDEVICE *physDev); extern BOOL destroy_glxpixmap(Display *display, XID glxpixmap); /* XIM support */ +extern BOOL X11DRV_InitXIM( const char *input_style ); extern XIC X11DRV_CreateIC(XIM xim, Display *display, Window win); -extern XIM X11DRV_SetupXIM(Display *display, const char *input_style); +extern XIM X11DRV_SetupXIM(Display *display); extern void X11DRV_XIMLookupChars( const char *str, DWORD count ); extern void X11DRV_ForceXIMReset(HWND hwnd); diff --git a/dlls/winex11.drv/x11drv_main.c b/dlls/winex11.drv/x11drv_main.c index b8f0b45..1c221bc 100644 --- a/dlls/winex11.drv/x11drv_main.c +++ b/dlls/winex11.drv/x11drv_main.c @@ -538,6 +538,7 @@ static BOOL process_attach(void) X11DRV_InitKeyboard( gdi_display ); X11DRV_InitClipboard(); + if (use_xim) use_xim = X11DRV_InitXIM( input_style ); return TRUE; } @@ -649,12 +650,12 @@ struct x11drv_thread_data *x11drv_init_thread_data(void) if (TRACE_ON(synchronous)) XSynchronize( data->display, True ); wine_tsx11_unlock(); - if (use_xim && !(data->xim = X11DRV_SetupXIM( data->display, input_style ))) - WARN("Input Method is not available\n"); - set_queue_display_fd( data->display ); TlsSetValue( thread_data_tls_index, data ); + + if (use_xim) data->xim = X11DRV_SetupXIM( data->display ); X11DRV_SetCursor( NULL ); + return data; } diff --git a/dlls/winex11.drv/xim.c b/dlls/winex11.drv/xim.c index 4505ecd..f389db7 100644 --- a/dlls/winex11.drv/xim.c +++ b/dlls/winex11.drv/xim.c @@ -37,9 +37,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(x11drv); BOOL ximInComposeMode=FALSE; -static XIMStyle ximStyle = 0; -static XIMStyle ximStyleRoot = 0; - /* moved here from imm32 for dll separation */ static DWORD dwCompStringLength = 0; static LPBYTE CompositionString = NULL; @@ -56,6 +53,10 @@ static DWORD dwPreeditPos = 0; /* inorder to enable deadkey support */ #define STYLE_NONE (XIMPreeditNothing | XIMStatusNothing) +static XIMStyle ximStyle = 0; +static XIMStyle ximStyleRoot = 0; +static XIMStyle ximStyleRequest = STYLE_CALLBACK; + static BOOL X11DRV_ImmSetInternalString(DWORD dwIndex, DWORD dwOffset, DWORD selLength, LPWSTR lpComp, DWORD dwCompLen) { @@ -327,16 +328,13 @@ void X11DRV_ForceXIMReset(HWND hwnd) } /*********************************************************************** -* X11DRV Ime creation -*/ -XIM X11DRV_SetupXIM(Display *display, const char *input_style) + * X11DRV_InitXIM + * + * Process-wide XIM initialization. + */ +BOOL X11DRV_InitXIM( const char *input_style ) { - XIMStyle ximStyleRequest, ximStyleCallback, ximStyleNone; - XIMStyles *ximStyles = NULL; - INT i; - XIM xim; - - ximStyleRequest = STYLE_CALLBACK; + BOOL ret; if (!strcasecmp(input_style, "offthespot")) ximStyleRequest = STYLE_OFFTHESPOT; @@ -346,17 +344,31 @@ XIM X11DRV_SetupXIM(Display *display, const char *input_style) ximStyleRequest = STYLE_ROOT; wine_tsx11_lock(); - - if(!XSupportsLocale()) + if (!(ret = XSupportsLocale())) { WARN("X does not support locale.\n"); - goto err; } - if(XSetLocaleModifiers("") == NULL) + else if (XSetLocaleModifiers("") == NULL) { WARN("Could not set locale modifiers.\n"); - goto err; + ret = FALSE; } + wine_tsx11_unlock(); + return ret; +} + + +/*********************************************************************** +* X11DRV Ime creation +*/ +XIM X11DRV_SetupXIM( Display *display ) +{ + XIMStyle ximStyleCallback, ximStyleNone; + XIMStyles *ximStyles = NULL; + INT i; + XIM xim; + + wine_tsx11_lock(); xim = XOpenIM(display, NULL, NULL, NULL); if (xim == NULL)
[View Less]
1
0
0
0
Maarten Lankhorst : quartz: Add stubs for the IMediaSeeking interface in SeekingPassThru.
by Alexandre Julliard
10 Apr '08
10 Apr '08
Module: wine Branch: master Commit: bd324db0597b450cff8b4bc87d20d852319d2196 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=bd324db0597b450cff8b4bc87…
Author: Maarten Lankhorst <m.b.lankhorst(a)gmail.com> Date: Wed Apr 9 16:34:23 2008 -0700 quartz: Add stubs for the IMediaSeeking interface in SeekingPassThru. --- dlls/quartz/control.c | 420 ++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 330 insertions(+), 90 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=bd324db0597b450cff8b4…
1
0
0
0
Maarten Lankhorst : quartz: Add a stub for SeekingPassThru.
by Alexandre Julliard
10 Apr '08
10 Apr '08
Module: wine Branch: master Commit: 65e6bbd1861d403c364800c8aea29456c55680d5 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=65e6bbd1861d403c364800c8a…
Author: Maarten Lankhorst <m.b.lankhorst(a)gmail.com> Date: Wed Apr 9 13:12:55 2008 -0700 quartz: Add a stub for SeekingPassThru. --- dlls/quartz/control.c | 170 ++++++++++++++++++++++++++++++++++++++++++ dlls/quartz/main.c | 1 + dlls/quartz/quartz_private.h | 1 + 3 files changed, 172 insertions(
…
[View More]
+), 0 deletions(-) diff --git a/dlls/quartz/control.c b/dlls/quartz/control.c index f6851bb..4d30716 100644 --- a/dlls/quartz/control.c +++ b/dlls/quartz/control.c @@ -29,6 +29,176 @@ WINE_DEFAULT_DEBUG_CHANNEL(quartz); +typedef struct PassThruImpl { + const ISeekingPassThruVtbl *IPassThru_vtbl; + const IUnknownVtbl * IInner_vtbl; + + LONG ref; + IUnknown * pUnkOuter; + BOOL bUnkOuterValid; + BOOL bAggregatable; +} PassThruImpl; + +static HRESULT WINAPI SeekInner_QueryInterface(IUnknown * iface, + REFIID riid, + LPVOID *ppvObj) { + ICOM_THIS_MULTI(PassThruImpl, IInner_vtbl, iface); + TRACE("(%p)->(%s (%p), %p)\n", This, debugstr_guid(riid), riid, ppvObj); + + if (This->bAggregatable) + This->bUnkOuterValid = TRUE; + + if (IsEqualGUID(&IID_IUnknown, riid)) + { + *ppvObj = &(This->IInner_vtbl); + TRACE(" returning IUnknown interface (%p)\n", *ppvObj); + } else if (IsEqualGUID(&IID_ISeekingPassThru, riid)) { + *ppvObj = &(This->IPassThru_vtbl); + TRACE(" returning IMediaSeeking interface (%p)\n", *ppvObj); + } else { + *ppvObj = NULL; + FIXME("unknown interface %s\n", debugstr_guid(riid)); + return E_NOINTERFACE; + } + + IUnknown_AddRef((IUnknown *)(*ppvObj)); + return S_OK; +} + +static ULONG WINAPI SeekInner_AddRef(IUnknown * iface) { + ICOM_THIS_MULTI(PassThruImpl, IInner_vtbl, iface); + ULONG ref = InterlockedIncrement(&This->ref); + + TRACE("(%p)->(): new ref = %d\n", This, ref); + + return ref; +} + +static ULONG WINAPI SeekInner_Release(IUnknown * iface) { + ICOM_THIS_MULTI(PassThruImpl, IInner_vtbl, iface); + ULONG ref = InterlockedDecrement(&This->ref); + + TRACE("(%p)->(): new ref = %d\n", This, ref); + + if (ref == 0) + { + CoTaskMemFree(This); + } + return ref; +} + +static const IUnknownVtbl IInner_VTable = +{ + SeekInner_QueryInterface, + SeekInner_AddRef, + SeekInner_Release +}; + +/* Generic functions for aggegration */ +static HRESULT WINAPI SeekOuter_QueryInterface(PassThruImpl *This, REFIID riid, LPVOID *ppv) +{ + if (This->bAggregatable) + This->bUnkOuterValid = TRUE; + + if (This->pUnkOuter) + { + if (This->bAggregatable) + return IUnknown_QueryInterface(This->pUnkOuter, riid, ppv); + + if (IsEqualIID(riid, &IID_IUnknown)) + { + HRESULT hr; + + IUnknown_AddRef((IUnknown *)&(This->IInner_vtbl)); + hr = IUnknown_QueryInterface((IUnknown *)&(This->IInner_vtbl), riid, ppv); + IUnknown_Release((IUnknown *)&(This->IInner_vtbl)); + This->bAggregatable = TRUE; + return hr; + } + + *ppv = NULL; + return E_NOINTERFACE; + } + + return IUnknown_QueryInterface((IUnknown *)&(This->IInner_vtbl), riid, ppv); +} + +static ULONG WINAPI SeekOuter_AddRef(PassThruImpl *This) +{ + if (This->pUnkOuter && This->bUnkOuterValid) + return IUnknown_AddRef(This->pUnkOuter); + return IUnknown_AddRef((IUnknown *)&(This->IInner_vtbl)); +} + +static ULONG WINAPI SeekOuter_Release(PassThruImpl *This) +{ + if (This->pUnkOuter && This->bUnkOuterValid) + return IUnknown_Release(This->pUnkOuter); + return IUnknown_Release((IUnknown *)&(This->IInner_vtbl)); +} + +static HRESULT WINAPI SeekingPassThru_QueryInterface(ISeekingPassThru *iface, REFIID riid, LPVOID *ppvObj) +{ + ICOM_THIS_MULTI(PassThruImpl, IPassThru_vtbl, iface); + + TRACE("(%p/%p)->(%s (%p), %p)\n", This, iface, debugstr_guid(riid), riid, ppvObj); + + return SeekOuter_QueryInterface(This, riid, ppvObj); +} + +static ULONG WINAPI SeekingPassThru_AddRef(ISeekingPassThru *iface) +{ + ICOM_THIS_MULTI(PassThruImpl, IPassThru_vtbl, iface); + + TRACE("(%p/%p)->()\n", This, iface); + + return SeekOuter_AddRef(This); +} + +static ULONG WINAPI SeekingPassThru_Release(ISeekingPassThru *iface) +{ + ICOM_THIS_MULTI(PassThruImpl, IPassThru_vtbl, iface); + + TRACE("(%p/%p)->()\n", This, iface); + + return SeekOuter_Release(This); +} + +static HRESULT WINAPI SeekingPassThru_Init(ISeekingPassThru *iface, BOOL renderer, IPin *pin) +{ + ICOM_THIS_MULTI(PassThruImpl, IPassThru_vtbl, iface); + + FIXME("(%p/%p)->(%d, %p) stub\n", This, iface, renderer, pin); + + return S_OK; +} + +static const ISeekingPassThruVtbl ISeekingPassThru_Vtbl = +{ + SeekingPassThru_QueryInterface, + SeekingPassThru_AddRef, + SeekingPassThru_Release, + SeekingPassThru_Init +}; + +HRESULT SeekingPassThru_create(IUnknown *pUnkOuter, LPVOID *ppObj) +{ + PassThruImpl *fimpl; + + TRACE("(%p,%p)\n", pUnkOuter, ppObj); + + *ppObj = fimpl = CoTaskMemAlloc(sizeof(*fimpl)); + if (!fimpl) + return E_OUTOFMEMORY; + + fimpl->pUnkOuter = pUnkOuter; + fimpl->bUnkOuterValid = FALSE; + fimpl->bAggregatable = FALSE; + fimpl->IInner_vtbl = &IInner_VTable; + fimpl->IPassThru_vtbl = &ISeekingPassThru_Vtbl; + fimpl->ref = 1; + return S_OK; +} typedef HRESULT (*SeekFunc)( IMediaSeeking *to, LPVOID arg ); diff --git a/dlls/quartz/main.c b/dlls/quartz/main.c index fa08d73..24fb1bf 100644 --- a/dlls/quartz/main.c +++ b/dlls/quartz/main.c @@ -60,6 +60,7 @@ struct object_creation_info static const struct object_creation_info object_creation[] = { + { &CLSID_SeekingPassThru, SeekingPassThru_create }, { &CLSID_FilterGraph, FilterGraph_create }, { &CLSID_FilterGraphNoThread, FilterGraphNoThread_create }, { &CLSID_FilterMapper, FilterMapper_create }, diff --git a/dlls/quartz/quartz_private.h b/dlls/quartz/quartz_private.h index 528b59b..9f92ad6 100644 --- a/dlls/quartz/quartz_private.h +++ b/dlls/quartz/quartz_private.h @@ -57,6 +57,7 @@ HRESULT VideoRendererDefault_create(IUnknown * pUnkOuter, LPVOID * ppv); HRESULT QUARTZ_CreateSystemClock(IUnknown * pUnkOuter, LPVOID * ppv); HRESULT ACMWrapper_create(IUnknown * pUnkOuter, LPVOID * ppv); HRESULT WAVEParser_create(IUnknown * pUnkOuter, LPVOID * ppv); +HRESULT SeekingPassThru_create(IUnknown *pUnkOuter, LPVOID *ppObj); HRESULT EnumMonikerImpl_Create(IMoniker ** ppMoniker, ULONG nMonikerCount, IEnumMoniker ** ppEnum);
[View Less]
1
0
0
0
Jacek Caban : mshtml: Correctly handle NULL req in get_nscontainer_from_load_group.
by Alexandre Julliard
10 Apr '08
10 Apr '08
Module: wine Branch: master Commit: 732682b08cf3b64267045cf0ab051fb84af43aea URL:
http://source.winehq.org/git/wine.git/?a=commit;h=732682b08cf3b64267045cf0a…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Thu Apr 10 10:38:05 2008 +0200 mshtml: Correctly handle NULL req in get_nscontainer_from_load_group. --- dlls/mshtml/nsio.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/dlls/mshtml/nsio.c b/dlls/mshtml/nsio.c index 0331882..53ad33e 100644 ---
…
[View More]
a/dlls/mshtml/nsio.c +++ b/dlls/mshtml/nsio.c @@ -656,6 +656,9 @@ static NSContainer *get_nscontainer_from_load_group(nsChannel *This) return NULL; } + if(!req) + return NULL; + nsres = nsIRequest_QueryInterface(req, &IID_nsIChannel, (void**)&channel); nsIRequest_Release(req); if(NS_FAILED(nsres)) {
[View Less]
1
0
0
0
Jacek Caban : mshtml.idl: Added DispHTMLWindow2 dispinterface.
by Alexandre Julliard
10 Apr '08
10 Apr '08
Module: wine Branch: master Commit: 2f9b7741ca97798baf3d416553bfbb2c3926f450 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=2f9b7741ca97798baf3d41655…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Thu Apr 10 10:37:39 2008 +0200 mshtml.idl: Added DispHTMLWindow2 dispinterface. --- include/mshtmdid.h | 36 +++++ include/mshtml.idl | 392 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 428 insertions(+), 0 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=2f9b7741ca97798baf3d4…
1
0
0
0
Jacek Caban : include: Added ICanHandleException interface.
by Alexandre Julliard
10 Apr '08
10 Apr '08
Module: wine Branch: master Commit: ea215f790dd151fdf5b13000c37c53ff183a588f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=ea215f790dd151fdf5b13000c…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Thu Apr 10 10:37:54 2008 +0200 include: Added ICanHandleException interface. --- include/dispex.idl | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/include/dispex.idl b/include/dispex.idl index 5891f08..b44448e 100644 --- a/include/
…
[View More]
dispex.idl +++ b/include/dispex.idl @@ -176,3 +176,15 @@ interface IObjectIdentity : IUnknown HRESULT IsEqualObject( [in] IUnknown *punk); } + +[ + object, + uuid(c5598e60-b307-11d1-b27d-006008c3fbfb), + pointer_default(unique) +] +interface ICanHandleException : IUnknown +{ + HRESULT CanHandleException( + [in] EXCEPINFO *pExcepInfo, + [in] VARIANT *pvar); +}
[View Less]
1
0
0
0
Jacek Caban : jscript: Added IObjectSafety tests.
by Alexandre Julliard
10 Apr '08
10 Apr '08
Module: wine Branch: master Commit: b9117b6166de3c8f27483ace5225f5c63975f85e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=b9117b6166de3c8f27483ace5…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Thu Apr 10 10:37:17 2008 +0200 jscript: Added IObjectSafety tests. --- dlls/jscript/tests/Makefile.in | 1 + dlls/jscript/tests/jscript.c | 64 ++++++++++++++++++++++++++++++++++++++- 2 files changed, 63 insertions(+), 2 deletions(-) diff --git a/dlls/jscript/
…
[View More]
tests/Makefile.in b/dlls/jscript/tests/Makefile.in index 2201a4a..d707ed5 100644 --- a/dlls/jscript/tests/Makefile.in +++ b/dlls/jscript/tests/Makefile.in @@ -4,6 +4,7 @@ SRCDIR = @srcdir@ VPATH = @srcdir@ TESTDLL = jscript.dll IMPORTS = ole32 kernel32 +EXTRALIBS = -luuid CTESTS = \ jscript.c diff --git a/dlls/jscript/tests/jscript.c b/dlls/jscript/tests/jscript.c index a811ef2..2fec01c 100644 --- a/dlls/jscript/tests/jscript.c +++ b/dlls/jscript/tests/jscript.c @@ -18,16 +18,74 @@ #define COBJMACROS -#include <initguid.h> - #include <ole2.h> #include <activscp.h> +#include <objsafe.h> #include "wine/test.h" static const CLSID CLSID_JScript = {0xf414c260,0x6ac0,0x11cf,{0xb6,0xd1,0x00,0xaa,0x00,0xbb,0xbb,0x58}}; +static void test_safety(IUnknown *unk) +{ + IObjectSafety *safety; + DWORD supported, enabled; + HRESULT hres; + + hres = IUnknown_QueryInterface(unk, &IID_IObjectSafety, (void**)&safety); + ok(hres == S_OK, "Could not get IObjectSafety: %08x\n", hres); + if(FAILED(hres)) + return; + + hres = IObjectSafety_GetInterfaceSafetyOptions(safety, &IID_NULL, &supported, NULL); + ok(hres == E_POINTER, "GetInterfaceSafetyOptions failed: %08x, expected E_POINTER\n", hres); + hres = IObjectSafety_GetInterfaceSafetyOptions(safety, &IID_NULL, NULL, &enabled); + ok(hres == E_POINTER, "GetInterfaceSafetyOptions failed: %08x, expected E_POINTER\n", hres); + + supported = enabled = 0xdeadbeef; + hres = IObjectSafety_GetInterfaceSafetyOptions(safety, &IID_NULL, &supported, &enabled); + ok(hres == S_OK, "GetInterfaceSafetyOptions failed: %08x\n", hres); + ok(supported == (INTERFACESAFE_FOR_UNTRUSTED_DATA|INTERFACE_USES_DISPEX|INTERFACE_USES_SECURITY_MANAGER), + "supported=%x\n", supported); + ok(enabled == INTERFACE_USES_DISPEX, "enabled=%x\n", enabled); + + supported = enabled = 0xdeadbeef; + hres = IObjectSafety_GetInterfaceSafetyOptions(safety, &IID_IActiveScript, &supported, &enabled); + ok(hres == S_OK, "GetInterfaceSafetyOptions failed: %08x\n", hres); + ok(supported == (INTERFACESAFE_FOR_UNTRUSTED_DATA|INTERFACE_USES_DISPEX|INTERFACE_USES_SECURITY_MANAGER), + "supported=%x\n", supported); + ok(enabled == INTERFACE_USES_DISPEX, "enabled=%x\n", enabled); + + supported = enabled = 0xdeadbeef; + hres = IObjectSafety_GetInterfaceSafetyOptions(safety, &IID_IActiveScriptParse, &supported, &enabled); + ok(hres == S_OK, "GetInterfaceSafetyOptions failed: %08x\n", hres); + ok(supported == (INTERFACESAFE_FOR_UNTRUSTED_DATA|INTERFACE_USES_DISPEX|INTERFACE_USES_SECURITY_MANAGER), + "supported=%x\n", supported); + ok(enabled == INTERFACE_USES_DISPEX, "enabled=%x\n", enabled); + + hres = IObjectSafety_SetInterfaceSafetyOptions(safety, &IID_IActiveScriptParse, + INTERFACESAFE_FOR_UNTRUSTED_DATA|INTERFACE_USES_DISPEX|INTERFACE_USES_SECURITY_MANAGER + |INTERFACESAFE_FOR_UNTRUSTED_CALLER, + INTERFACESAFE_FOR_UNTRUSTED_DATA|INTERFACE_USES_DISPEX|INTERFACE_USES_SECURITY_MANAGER); + ok(hres == E_FAIL, "SetInterfaceSafetyOptions failed: %08x\n, expected E_FAIL", hres); + + hres = IObjectSafety_SetInterfaceSafetyOptions(safety, &IID_IActiveScriptParse, + INTERFACESAFE_FOR_UNTRUSTED_DATA|INTERFACE_USES_DISPEX|INTERFACE_USES_SECURITY_MANAGER, + INTERFACESAFE_FOR_UNTRUSTED_DATA|INTERFACE_USES_DISPEX|INTERFACE_USES_SECURITY_MANAGER); + ok(hres == S_OK, "SetInterfaceSafetyOptions failed: %08x\n", hres); + + supported = enabled = 0xdeadbeef; + hres = IObjectSafety_GetInterfaceSafetyOptions(safety, &IID_IActiveScriptParse, &supported, &enabled); + ok(hres == S_OK, "GetInterfaceSafetyOptions failed: %08x\n", hres); + ok(supported == (INTERFACESAFE_FOR_UNTRUSTED_DATA|INTERFACE_USES_DISPEX|INTERFACE_USES_SECURITY_MANAGER), + "supported=%x\n", supported); + ok(enabled == (INTERFACESAFE_FOR_UNTRUSTED_DATA|INTERFACE_USES_DISPEX|INTERFACE_USES_SECURITY_MANAGER), + "enabled=%x\n", enabled); + + IObjectSafety_Release(safety); +} + static void test_jscript(void) { IActiveScriptParse *parse; @@ -47,6 +105,8 @@ static void test_jscript(void) hres = IUnknown_QueryInterface(unk, &IID_IActiveScriptParse, (void**)&parse); ok(hres == S_OK, "Could not get IActiveScriptParse: %08x\n", hres); + test_safety(unk); + IActiveScriptParse_Release(parse); IActiveScript_Release(script); IUnknown_Release(unk);
[View Less]
1
0
0
0
Lei Zhang : gdiplus: Add a stub for GdipSetImageAttributesOutputChannelColorProfile.
by Alexandre Julliard
10 Apr '08
10 Apr '08
Module: wine Branch: master Commit: 5ba99f4eb556b4d0b3518d91404460e8b7e05e16 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=5ba99f4eb556b4d0b3518d914…
Author: Lei Zhang <thestig(a)google.com> Date: Wed Apr 9 13:26:48 2008 -0700 gdiplus: Add a stub for GdipSetImageAttributesOutputChannelColorProfile. --- dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/imageattributes.c | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletions(-) diff --git a/dlls/
…
[View More]
gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index 236714c..8157f4f 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -527,7 +527,7 @@ @ stdcall GdipSetImageAttributesGamma(ptr long long long) @ stdcall GdipSetImageAttributesNoOp(ptr long long) @ stdcall GdipSetImageAttributesOutputChannel(ptr long long long) -@ stub GdipSetImageAttributesOutputChannelColorProfile +@ stdcall GdipSetImageAttributesOutputChannelColorProfile(ptr long long ptr) @ stub GdipSetImageAttributesRemapTable @ stub GdipSetImageAttributesThreshold @ stub GdipSetImageAttributesToIdentity diff --git a/dlls/gdiplus/imageattributes.c b/dlls/gdiplus/imageattributes.c index 61cf012..b74fc66 100644 --- a/dlls/gdiplus/imageattributes.c +++ b/dlls/gdiplus/imageattributes.c @@ -134,3 +134,15 @@ GpStatus WINGDIPAPI GdipSetImageAttributesOutputChannel(GpImageAttributes *image return NotImplemented; } + +GpStatus WINGDIPAPI GdipSetImageAttributesOutputChannelColorProfile(GpImageAttributes *imageAttr, + ColorAdjustType type, BOOL enableFlag, + GDIPCONST WCHAR *colorProfileFilename) +{ + static int calls; + + if(!(calls++)) + FIXME("not implemented\n"); + + return NotImplemented; +}
[View Less]
1
0
0
0
Lei Zhang : gdiplus: Add a stub for GdipSetImageAttributesOutputChannel.
by Alexandre Julliard
10 Apr '08
10 Apr '08
Module: wine Branch: master Commit: 139da784bf1bae0fa19184a3a46be1449efbee1f URL:
http://source.winehq.org/git/wine.git/?a=commit;h=139da784bf1bae0fa19184a3a…
Author: Lei Zhang <thestig(a)google.com> Date: Wed Apr 9 13:25:14 2008 -0700 gdiplus: Add a stub for GdipSetImageAttributesOutputChannel. --- dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/imageattributes.c | 11 +++++++++++ include/Makefile.in | 1 + include/gdiplus.h | 2 ++
…
[View More]
include/gdipluscolor.h | 37 +++++++++++++++++++++++++++++++++++++ 5 files changed, 52 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index b9d4c59..236714c 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -526,7 +526,7 @@ @ stdcall GdipSetImageAttributesColorMatrix(ptr long long ptr ptr long) @ stdcall GdipSetImageAttributesGamma(ptr long long long) @ stdcall GdipSetImageAttributesNoOp(ptr long long) -@ stub GdipSetImageAttributesOutputChannel +@ stdcall GdipSetImageAttributesOutputChannel(ptr long long long) @ stub GdipSetImageAttributesOutputChannelColorProfile @ stub GdipSetImageAttributesRemapTable @ stub GdipSetImageAttributesThreshold diff --git a/dlls/gdiplus/imageattributes.c b/dlls/gdiplus/imageattributes.c index 5562c91..61cf012 100644 --- a/dlls/gdiplus/imageattributes.c +++ b/dlls/gdiplus/imageattributes.c @@ -123,3 +123,14 @@ GpStatus WINGDIPAPI GdipSetImageAttributesNoOp(GpImageAttributes *imageAttr, return NotImplemented; } + +GpStatus WINGDIPAPI GdipSetImageAttributesOutputChannel(GpImageAttributes *imageAttr, + ColorAdjustType type, BOOL enableFlag, ColorChannelFlags channelFlags) +{ + static int calls; + + if(!(calls++)) + FIXME("not implemented\n"); + + return NotImplemented; +} diff --git a/include/Makefile.in b/include/Makefile.in index efcd92c..11ee8b6 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -195,6 +195,7 @@ SRCDIR_INCLUDES = \ fci.h \ fdi.h \ gdiplus.h \ + gdipluscolor.h \ gdipluscolormatrix.h \ gdiplusenums.h \ gdiplusflat.h \ diff --git a/include/gdiplus.h b/include/gdiplus.h index 9e72f52..c8385db 100644 --- a/include/gdiplus.h +++ b/include/gdiplus.h @@ -34,6 +34,7 @@ namespace Gdiplus #include "gdipluspixelformats.h" #include "gdiplusmetaheader.h" #include "gdiplusimaging.h" +#include "gdipluscolor.h" #include "gdipluscolormatrix.h" #include "gdiplusgpstubs.h" @@ -53,6 +54,7 @@ namespace Gdiplus #include "gdipluspixelformats.h" #include "gdiplusmetaheader.h" #include "gdiplusimaging.h" +#include "gdipluscolor.h" #include "gdipluscolormatrix.h" #include "gdiplusgpstubs.h" diff --git a/include/gdipluscolor.h b/include/gdipluscolor.h new file mode 100644 index 0000000..5c8e53f --- /dev/null +++ b/include/gdipluscolor.h @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2808 Google (Lei Zhang) + * + * 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 + */ + +#ifndef _GDIPLUSCOLOR_H +#define _GDIPLUSCOLOR_H + +enum ColorChannelFlags +{ + ColorChannelFlagsC, + ColorChannelFlagsM, + ColorChannelFlagsY, + ColorChannelFlagsK, + ColorChannelFlagsLast +}; + +#ifndef __cplusplus + +typedef enum ColorChannelFlags ColorChannelFlags; + +#endif /* end of c typedefs */ + +#endif /* _GDIPLUSCOLOR_H */
[View Less]
1
0
0
0
Lei Zhang : gdiplus: Add a stub for GdipSetImageAttributesNoOp.
by Alexandre Julliard
10 Apr '08
10 Apr '08
Module: wine Branch: master Commit: 68f5cdb28e21d20dad925737485a163833960761 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=68f5cdb28e21d20dad9257374…
Author: Lei Zhang <thestig(a)google.com> Date: Wed Apr 9 13:16:32 2008 -0700 gdiplus: Add a stub for GdipSetImageAttributesNoOp. --- dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/imageattributes.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletions(-) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/
…
[View More]
gdiplus/gdiplus.spec index 1c4b727..b9d4c59 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -525,7 +525,7 @@ @ stdcall GdipSetImageAttributesColorKeys(ptr long long long long) @ stdcall GdipSetImageAttributesColorMatrix(ptr long long ptr ptr long) @ stdcall GdipSetImageAttributesGamma(ptr long long long) -@ stub GdipSetImageAttributesNoOp +@ stdcall GdipSetImageAttributesNoOp(ptr long long) @ stub GdipSetImageAttributesOutputChannel @ stub GdipSetImageAttributesOutputChannelColorProfile @ stub GdipSetImageAttributesRemapTable diff --git a/dlls/gdiplus/imageattributes.c b/dlls/gdiplus/imageattributes.c index ab47d1d..5562c91 100644 --- a/dlls/gdiplus/imageattributes.c +++ b/dlls/gdiplus/imageattributes.c @@ -112,3 +112,14 @@ GpStatus WINGDIPAPI GdipSetImageAttributesGamma(GpImageAttributes *imageAttr, return NotImplemented; } + +GpStatus WINGDIPAPI GdipSetImageAttributesNoOp(GpImageAttributes *imageAttr, + ColorAdjustType type, BOOL enableFlag) +{ + static int calls; + + if(!(calls++)) + FIXME("not implemented\n"); + + return NotImplemented; +}
[View Less]
1
0
0
0
← Newer
1
...
79
80
81
82
83
84
85
...
128
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
Results per page:
10
25
50
100
200