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
December 2010
----- 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
2 participants
1099 discussions
Start a n
N
ew thread
André Hentschel : rsaenh: Fix test failure on some NT4 machines.
by Alexandre Julliard
13 Dec '10
13 Dec '10
Module: wine Branch: master Commit: 59852bc3a06c352947c7b475133371f4d9206da3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=59852bc3a06c352947c7b4751…
Author: André Hentschel <nerv(a)dawncrow.de> Date: Sun Dec 12 22:28:44 2010 +0100 rsaenh: Fix test failure on some NT4 machines. --- dlls/rsaenh/tests/rsaenh.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dlls/rsaenh/tests/rsaenh.c b/dlls/rsaenh/tests/rsaenh.c index 5ee85f4..8f46a09 100644 --- a/dlls/rsaenh/tests/rsaenh.c +++ b/dlls/rsaenh/tests/rsaenh.c @@ -2362,7 +2362,8 @@ static void test_rsa_round_trip(void) dataLen = strlen(test_string) + 1; result = CryptEncrypt(keyExchangeKey, 0, TRUE, 0, data, &dataLen, sizeof(data)); - ok(result || broken(GetLastError() == NTE_BAD_KEY /* Win9x/2000 */), + ok(result || broken(GetLastError() == NTE_BAD_KEY /* Win9x/2000 */) || + broken(GetLastError() == NTE_PERM /* NT4 */), "CryptEncrypt failed: %08x\n", GetLastError()); /* export the key... */ result = CryptExportKey(keyExchangeKey, 0, PRIVATEKEYBLOB, 0, NULL, @@ -2382,7 +2383,8 @@ static void test_rsa_round_trip(void) * key. */ result = CryptDecrypt(keyExchangeKey, 0, TRUE, 0, data, &dataLen); - ok(result || broken(GetLastError() == NTE_BAD_KEY /* Win9x/2000 */), + ok(result || broken(GetLastError() == NTE_BAD_KEY /* Win9x/2000 */) || + broken(GetLastError() == NTE_PERM /* NT4 */), "CryptDecrypt failed: %08x\n", GetLastError()); if (result) {
1
0
0
0
André Hentschel : ntdll: Fix test failure on some NT4 machines.
by Alexandre Julliard
13 Dec '10
13 Dec '10
Module: wine Branch: master Commit: 74fecb35138b2162c20d1c717267b28c57cfece3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=74fecb35138b2162c20d1c717…
Author: André Hentschel <nerv(a)dawncrow.de> Date: Sun Dec 12 22:28:36 2010 +0100 ntdll: Fix test failure on some NT4 machines. --- dlls/ntdll/tests/error.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/ntdll/tests/error.c b/dlls/ntdll/tests/error.c index 1e44da0..d9c83b3 100644 --- a/dlls/ntdll/tests/error.c +++ b/dlls/ntdll/tests/error.c @@ -224,7 +224,7 @@ static void run_error_tests(void) cmp(STATUS_WRONG_VOLUME, ERROR_WRONG_DISK); cmp(STATUS_NO_MEDIA, ERROR_NO_MEDIA_IN_DRIVE); cmp(STATUS_NO_MEDIA_IN_DEVICE, ERROR_NOT_READY); - cmp(STATUS_VOLUME_DISMOUNTED, ERROR_NOT_READY); + cmp2(STATUS_VOLUME_DISMOUNTED, ERROR_NOT_READY); cmp(STATUS_NONEXISTENT_SECTOR, ERROR_SECTOR_NOT_FOUND); cmp(STATUS_WORKING_SET_QUOTA, ERROR_WORKING_SET_QUOTA); cmp(STATUS_NO_MEMORY, ERROR_NOT_ENOUGH_MEMORY);
1
0
0
0
André Hentschel : advapi32: Fix test failure on some NT4 machines.
by Alexandre Julliard
13 Dec '10
13 Dec '10
Module: wine Branch: master Commit: f36b59349832450b6456d58a6b580abc06901e00 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=f36b59349832450b6456d58a6…
Author: André Hentschel <nerv(a)dawncrow.de> Date: Sun Dec 12 22:28:18 2010 +0100 advapi32: Fix test failure on some NT4 machines. --- dlls/advapi32/tests/crypt.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/advapi32/tests/crypt.c b/dlls/advapi32/tests/crypt.c index 6cfbbbf..99f113d 100644 --- a/dlls/advapi32/tests/crypt.c +++ b/dlls/advapi32/tests/crypt.c @@ -945,7 +945,8 @@ static void test_machine_guid(void) r); /* Create and release a provider */ ret = pCryptAcquireContextA(&hCryptProv, szKeySet, NULL, PROV_RSA_FULL, 0); - ok(ret, "CryptAcquireContextA failed: %08x\n", GetLastError()); + ok(ret || broken(!ret && GetLastError() == NTE_KEYSET_ENTRY_BAD /* NT4 */), + "CryptAcquireContextA failed: %08x\n", GetLastError()); pCryptReleaseContext(hCryptProv, 0); if (restoreGuid)
1
0
0
0
Piotr Caban : sane.ds: Convert Polish translation to UTF-8.
by Alexandre Julliard
13 Dec '10
13 Dec '10
Module: wine Branch: master Commit: c0c781b14d4ad95de48095eb9f1bf9bdddd0dc18 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c0c781b14d4ad95de48095eb9…
Author: Piotr Caban <piotr(a)codeweavers.com> Date: Mon Dec 13 16:20:14 2010 +0100 sane.ds: Convert Polish translation to UTF-8. --- dlls/sane.ds/sane_Pl.rc | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/dlls/sane.ds/sane_Pl.rc b/dlls/sane.ds/sane_Pl.rc index 935c65c..11ffe0f 100644 --- a/dlls/sane.ds/sane_Pl.rc +++ b/dlls/sane.ds/sane_Pl.rc @@ -21,6 +21,8 @@ #include "resource.h" +#pragma code_page(65001) + LANGUAGE LANG_POLISH, SUBLANG_DEFAULT IDD_DIALOG1 DIALOG 0, 0, 186, 46 @@ -28,7 +30,7 @@ STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | WS_VISIBLE | DS_CENTE CAPTION "Skanowanie" FONT 8, "MS Sans Serif" BEGIN - LTEXT "TRWA SKANOWANIE... Prosz� czeka�",IDC_STATIC,5,19,181,8, SS_CENTER + LTEXT "TRWA SKANOWANIE... Proszę czekać",IDC_STATIC,5,19,181,8, SS_CENTER END STRINGTABLE
1
0
0
0
Jacek Caban : mshtml: Added more ActiveX tests.
by Alexandre Julliard
13 Dec '10
13 Dec '10
Module: wine Branch: master Commit: 4fd57881374ba9cb04c7dec90e0727895980a8df URL:
http://source.winehq.org/git/wine.git/?a=commit;h=4fd57881374ba9cb04c7dec90…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Mon Dec 13 16:01:08 2010 +0100 mshtml: Added more ActiveX tests. --- dlls/mshtml/tests/activex.c | 443 ++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 438 insertions(+), 5 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=4fd57881374ba9cb04c7d…
1
0
0
0
Jacek Caban : mshtml: Added more plugin in place activation support.
by Alexandre Julliard
13 Dec '10
13 Dec '10
Module: wine Branch: master Commit: 41ca6568be0666dbd9063a2c298fd1d7dcf19ba3 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=41ca6568be0666dbd9063a2c2…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Mon Dec 13 16:00:58 2010 +0100 mshtml: Added more plugin in place activation support. --- dlls/mshtml/pluginhost.c | 38 +++++++++++++++++++++++++++++++++----- 1 files changed, 33 insertions(+), 5 deletions(-) diff --git a/dlls/mshtml/pluginhost.c b/dlls/mshtml/pluginhost.c index cc90dc7..8f280c5 100644 --- a/dlls/mshtml/pluginhost.c +++ b/dlls/mshtml/pluginhost.c @@ -208,21 +208,39 @@ static void activate_plugin(PluginHost *host) IOleObject_Release(ole_obj); if(FAILED(hres)) WARN("DoVerb failed: %08x\n", hres); + + if(host->ip_object) { + HWND hwnd; + + hres = IOleInPlaceObject_GetWindow(host->ip_object, &hwnd); + if(SUCCEEDED(hres)) + TRACE("hwnd %p\n", hwnd); + } } void update_plugin_window(PluginHost *host, HWND hwnd, const RECT *rect) { + BOOL rect_changed = FALSE; + if(!hwnd || (host->hwnd && host->hwnd != hwnd)) { FIXME("unhandled hwnd\n"); return; } - host->rect = *rect; + TRACE("%p %s\n", hwnd, wine_dbgstr_rect(rect)); + + if(memcmp(rect, &host->rect, sizeof(RECT))) { + host->rect = *rect; + rect_changed = TRUE; + } if(!host->hwnd) { host->hwnd = hwnd; activate_plugin(host); } + + if(rect_changed && host->ip_object) + IOleInPlaceObject_SetObjectRects(host->ip_object, &host->rect, &host->rect); } static inline PluginHost *impl_from_IOleClientSite(IOleClientSite *iface) @@ -602,8 +620,11 @@ static ULONG WINAPI PHInPlaceSite_Release(IOleInPlaceSiteEx *iface) static HRESULT WINAPI PHInPlaceSite_GetWindow(IOleInPlaceSiteEx *iface, HWND *phwnd) { PluginHost *This = impl_from_IOleInPlaceSiteEx(iface); - FIXME("(%p)->(%p)\n", This, phwnd); - return E_NOTIMPL; + + TRACE("(%p)->(%p)\n", This, phwnd); + + *phwnd = This->hwnd; + return S_OK; } static HRESULT WINAPI PHInPlaceSite_ContextSensitiveHelp(IOleInPlaceSiteEx *iface, BOOL fEnterMode) @@ -693,8 +714,15 @@ static HRESULT WINAPI PHInPlaceSite_OnUIDeactivate(IOleInPlaceSiteEx *iface, BOO static HRESULT WINAPI PHInPlaceSite_OnInPlaceDeactivate(IOleInPlaceSiteEx *iface) { PluginHost *This = impl_from_IOleInPlaceSiteEx(iface); - FIXME("(%p)\n", This); - return E_NOTIMPL; + + TRACE("(%p)\n", This); + + if(This->ip_object) { + IOleInPlaceObject_Release(This->ip_object); + This->ip_object = NULL; + } + + return S_OK; } static HRESULT WINAPI PHInPlaceSite_DiscardUndoState(IOleInPlaceSiteEx *iface)
1
0
0
0
Jacek Caban : mshtml: Added PluginHost::GetWindowContext implementation.
by Alexandre Julliard
13 Dec '10
13 Dec '10
Module: wine Branch: master Commit: 073a48abe45731ed09ee0a400913d42779a6a975 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=073a48abe45731ed09ee0a400…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Mon Dec 13 16:00:48 2010 +0100 mshtml: Added PluginHost::GetWindowContext implementation. --- dlls/mshtml/Makefile.in | 1 + dlls/mshtml/ipwindow.c | 353 ++++++++++++++++++++++++++++++++++++++++++++++ dlls/mshtml/pluginhost.c | 37 +++++- dlls/mshtml/pluginhost.h | 3 + 4 files changed, 392 insertions(+), 2 deletions(-) Diff:
http://source.winehq.org/git/wine.git/?a=commitdiff;h=073a48abe45731ed09ee0…
1
0
0
0
Jacek Caban : mshtml: Deactivate plugin when detaching from document.
by Alexandre Julliard
13 Dec '10
13 Dec '10
Module: wine Branch: master Commit: 52cc865cdc2fd060f6bc4a0588cbf310a2dd809e URL:
http://source.winehq.org/git/wine.git/?a=commit;h=52cc865cdc2fd060f6bc4a058…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Mon Dec 13 16:00:37 2010 +0100 mshtml: Deactivate plugin when detaching from document. --- dlls/mshtml/htmldoc.c | 4 +++- dlls/mshtml/htmlobject.c | 2 +- dlls/mshtml/npplugin.c | 1 + dlls/mshtml/pluginhost.c | 34 ++++++++++++++++++++++++++++------ dlls/mshtml/pluginhost.h | 2 +- 5 files changed, 34 insertions(+), 9 deletions(-) diff --git a/dlls/mshtml/htmldoc.c b/dlls/mshtml/htmldoc.c index a4c1451..7cfa273 100644 --- a/dlls/mshtml/htmldoc.c +++ b/dlls/mshtml/htmldoc.c @@ -1898,9 +1898,11 @@ static void HTMLDocumentNode_destructor(HTMLDOMNode *iface) detach_selection(This); detach_ranges(This); - detach_plugin_hosts(This); release_nodes(This); + while(!list_empty(&This->plugin_hosts)) + detach_plugin_host(LIST_ENTRY(list_head(&This->plugin_hosts), PluginHost, entry)); + if(This->nsdoc) { release_mutation(This); nsIDOMHTMLDocument_Release(This->nsdoc); diff --git a/dlls/mshtml/htmlobject.c b/dlls/mshtml/htmlobject.c index c911dd8..1cb8d60 100644 --- a/dlls/mshtml/htmlobject.c +++ b/dlls/mshtml/htmlobject.c @@ -423,7 +423,7 @@ static void HTMLObjectElement_destructor(HTMLDOMNode *iface) HTMLObjectElement *This = HTMLOBJECT_NODE_THIS(iface); if(This->plugin_container.plugin_host) - This->plugin_container.plugin_host->element = NULL; + detach_plugin_host(This->plugin_container.plugin_host); if(This->nsobject) nsIDOMHTMLObjectElement_Release(This->nsobject); diff --git a/dlls/mshtml/npplugin.c b/dlls/mshtml/npplugin.c index ad88da2..20a30ab 100644 --- a/dlls/mshtml/npplugin.c +++ b/dlls/mshtml/npplugin.c @@ -296,6 +296,7 @@ static NPError CDECL NPP_Destroy(NPP instance, NPSavedData **save) if(!host) return NPERR_GENERIC_ERROR; + detach_plugin_host(host); IOleClientSite_Release(&host->IOleClientSite_iface); instance->pdata = NULL; return NPERR_NO_ERROR; diff --git a/dlls/mshtml/pluginhost.c b/dlls/mshtml/pluginhost.c index 8a7e2a6..bce884e 100644 --- a/dlls/mshtml/pluginhost.c +++ b/dlls/mshtml/pluginhost.c @@ -954,15 +954,37 @@ static HRESULT assoc_element(PluginHost *host, HTMLDocumentNode *doc, nsIDOMElem return S_OK; } -void detach_plugin_hosts(HTMLDocumentNode *doc) +void detach_plugin_host(PluginHost *host) { - PluginHost *iter; + HRESULT hres; + + TRACE("%p\n", host); + + if(!host->doc) + return; + + if(host->ip_object) + IOleInPlaceObject_InPlaceDeactivate(host->ip_object); - while(!list_empty(&doc->plugin_hosts)) { - iter = LIST_ENTRY(list_head(&doc->plugin_hosts), PluginHost, entry); - list_remove(&iter->entry); - iter->doc = NULL; + if(host->plugin_unk) { + IOleObject *ole_obj; + + hres = IUnknown_QueryInterface(host->plugin_unk, &IID_IOleObject, (void**)&ole_obj); + if(SUCCEEDED(hres)) { + if(!host->ip_object) + IOleObject_Close(ole_obj, OLECLOSE_NOSAVE); + IOleObject_SetClientSite(ole_obj, NULL); + IOleObject_Release(ole_obj); + } } + + if(host->element) { + host->element->plugin_host = NULL; + host->element = NULL; + } + + list_remove(&host->entry); + host->doc = NULL; } HRESULT create_plugin_host(HTMLDocumentNode *doc, nsIDOMElement *nselem, IUnknown *unk, const CLSID *clsid, PluginHost **ret) diff --git a/dlls/mshtml/pluginhost.h b/dlls/mshtml/pluginhost.h index 30af989..135b2a8 100644 --- a/dlls/mshtml/pluginhost.h +++ b/dlls/mshtml/pluginhost.h @@ -52,6 +52,6 @@ extern const IID IID_HTMLPluginContainer; HRESULT create_plugin_host(HTMLDocumentNode*,nsIDOMElement*,IUnknown*,const CLSID*,PluginHost**); void update_plugin_window(PluginHost*,HWND,const RECT*); -void detach_plugin_hosts(HTMLDocumentNode*); +void detach_plugin_host(PluginHost*); HRESULT create_param_prop_bag(nsIDOMHTMLElement*,IPropertyBag**);
1
0
0
0
Jacek Caban : mshtml: Added support for plugin in place activation.
by Alexandre Julliard
13 Dec '10
13 Dec '10
Module: wine Branch: master Commit: c65f4c495684380d67ff169ddade3f57b9d7cd69 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=c65f4c495684380d67ff169dd…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Mon Dec 13 16:00:29 2010 +0100 mshtml: Added support for plugin in place activation. --- dlls/mshtml/pluginhost.c | 28 ++++++++++++++++++++++++---- dlls/mshtml/pluginhost.h | 1 + 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/dlls/mshtml/pluginhost.c b/dlls/mshtml/pluginhost.c index 5b8ab71..8a7e2a6 100644 --- a/dlls/mshtml/pluginhost.c +++ b/dlls/mshtml/pluginhost.c @@ -298,6 +298,8 @@ static ULONG WINAPI PHClientSite_Release(IOleClientSite *iface) TRACE("(%p) ref=%d\n", This, ref); if(!ref) { + if(This->ip_object) + IOleInPlaceObject_Release(This->ip_object); list_remove(&This->entry); if(This->element) This->element->plugin_host = NULL; @@ -351,8 +353,10 @@ static HRESULT WINAPI PHClientSite_GetContainer(IOleClientSite *iface, IOleConta static HRESULT WINAPI PHClientSite_ShowObject(IOleClientSite *iface) { PluginHost *This = impl_from_IOleClientSite(iface); - FIXME("(%p)\n", This); - return E_NOTIMPL; + + TRACE("(%p)\n", This); + + return S_OK; } static HRESULT WINAPI PHClientSite_OnShowWindow(IOleClientSite *iface, BOOL fShow) @@ -684,8 +688,24 @@ static HRESULT WINAPI PHInPlaceSite_OnPosRectChange(IOleInPlaceSiteEx *iface, LP static HRESULT WINAPI PHInPlaceSiteEx_OnInPlaceActivateEx(IOleInPlaceSiteEx *iface, BOOL *pfNoRedraw, DWORD dwFlags) { PluginHost *This = impl_from_IOleInPlaceSiteEx(iface); - FIXME("(%p)->(%p %x)\n", This, pfNoRedraw, dwFlags); - return E_NOTIMPL; + HWND hwnd; + HRESULT hres; + + TRACE("(%p)->(%p %x)\n", This, pfNoRedraw, dwFlags); + + if(This->ip_object) + return S_OK; + + hres = IUnknown_QueryInterface(This->plugin_unk, &IID_IOleInPlaceObject, (void**)&This->ip_object); + if(FAILED(hres)) + return hres; + + hres = IOleInPlaceObject_GetWindow(This->ip_object, &hwnd); + if(SUCCEEDED(hres)) + FIXME("Use hwnd %p\n", hwnd); + + *pfNoRedraw = FALSE; + return S_OK; } static HRESULT WINAPI PHInPlaceSiteEx_OnInPlaceDeactivateEx(IOleInPlaceSiteEx *iface, BOOL fNoRedraw) diff --git a/dlls/mshtml/pluginhost.h b/dlls/mshtml/pluginhost.h index ee1fed6..30af989 100644 --- a/dlls/mshtml/pluginhost.h +++ b/dlls/mshtml/pluginhost.h @@ -31,6 +31,7 @@ typedef struct { LONG ref; IUnknown *plugin_unk; + IOleInPlaceObject *ip_object; CLSID clsid; HWND hwnd; RECT rect;
1
0
0
0
Jacek Caban : mshtml: Call DoVerb on embedded plugin.
by Alexandre Julliard
13 Dec '10
13 Dec '10
Module: wine Branch: master Commit: 146b720f41f357f707f6af067f4fa5b5d153d439 URL:
http://source.winehq.org/git/wine.git/?a=commit;h=146b720f41f357f707f6af067…
Author: Jacek Caban <jacek(a)codeweavers.com> Date: Mon Dec 13 16:00:15 2010 +0100 mshtml: Call DoVerb on embedded plugin. --- dlls/mshtml/pluginhost.c | 34 ++++++++++++++++++++++++++++++++++ 1 files changed, 34 insertions(+), 0 deletions(-) diff --git a/dlls/mshtml/pluginhost.c b/dlls/mshtml/pluginhost.c index fc50be8..5b8ab71 100644 --- a/dlls/mshtml/pluginhost.c +++ b/dlls/mshtml/pluginhost.c @@ -88,6 +88,15 @@ static void update_readystate(PluginHost *host) } } +/* FIXME: We shouldn't need this function and we should embed plugin directly in the main document */ +void get_pos_rect(PluginHost *host, RECT *ret) +{ + ret->top = 0; + ret->left = 0; + ret->bottom = host->rect.bottom - host->rect.top; + ret->right = host->rect.right - host->rect.left; +} + static void load_prop_bag(PluginHost *host, IPersistPropertyBag *persist_prop_bag) { IPropertyBag *prop_bag; @@ -141,6 +150,9 @@ static void activate_plugin(PluginHost *host) { IClientSecurity *client_security; IQuickActivate *quick_activate; + IOleCommandTarget *cmdtrg; + IOleObject *ole_obj; + RECT rect; HRESULT hres; if(!host->plugin_unk) @@ -176,6 +188,26 @@ static void activate_plugin(PluginHost *host) } load_plugin(host); + + /* NOTE: Native QIs for IViewObjectEx, IActiveScript, an undocumented IID, IOleControl and IRunnableObject */ + + hres = IUnknown_QueryInterface(host->plugin_unk, &IID_IOleCommandTarget, (void**)&cmdtrg); + if(SUCCEEDED(hres)) { + FIXME("Use IOleCommandTarget\n"); + IOleCommandTarget_Release(cmdtrg); + } + + hres = IUnknown_QueryInterface(host->plugin_unk, &IID_IOleObject, (void**)&ole_obj); + if(FAILED(hres)) { + FIXME("Plugin does not support IOleObject\n"); + return; + } + + get_pos_rect(host, &rect); + hres = IOleObject_DoVerb(ole_obj, OLEIVERB_INPLACEACTIVATE, NULL, &host->IOleClientSite_iface, 0, host->hwnd, &rect); + IOleObject_Release(ole_obj); + if(FAILED(hres)) + WARN("DoVerb failed: %08x\n", hres); } void update_plugin_window(PluginHost *host, HWND hwnd, const RECT *rect) @@ -185,6 +217,8 @@ void update_plugin_window(PluginHost *host, HWND hwnd, const RECT *rect) return; } + host->rect = *rect; + if(!host->hwnd) { host->hwnd = hwnd; activate_plugin(host);
1
0
0
0
← Newer
1
...
48
49
50
51
52
53
54
...
110
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
Results per page:
10
25
50
100
200