Author: akhaldi
Date: Wed Mar 2 10:41:57 2016
New Revision: 70865
URL:
http://svn.reactos.org/svn/reactos?rev=70865&view=rev
Log:
[IEFRAME] Sync with Wine Staging 1.9.4. CORE-10912
Modified:
trunk/reactos/dll/win32/ieframe/dochost.c
trunk/reactos/dll/win32/ieframe/ieframe.h
trunk/reactos/dll/win32/ieframe/iexplore.c
trunk/reactos/dll/win32/ieframe/intshcut.c
trunk/reactos/dll/win32/ieframe/navigate.c
trunk/reactos/dll/win32/ieframe/oleobject.c
trunk/reactos/dll/win32/ieframe/webbrowser.c
trunk/reactos/media/doc/README.WINE
Modified: trunk/reactos/dll/win32/ieframe/dochost.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ieframe/dochost.…
==============================================================================
--- trunk/reactos/dll/win32/ieframe/dochost.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ieframe/dochost.c [iso-8859-1] Wed Mar 2 10:41:57 2016
@@ -73,7 +73,7 @@
}
}
-void on_commandstate_change(DocHost *doc_host, LONG command, VARIANT_BOOL enable)
+void on_commandstate_change(DocHost *doc_host, LONG command, BOOL enable)
{
DISPPARAMS dispparams;
VARIANTARG params[2];
@@ -648,13 +648,13 @@
const GUID *pguidCmdGroup, ULONG cCmds, OLECMD prgCmds[], OLECMDTEXT *pCmdText)
{
DocHost *This = impl_from_IOleCommandTarget(iface);
- ULONG i= 0;
- FIXME("(%p)->(%s %u %p %p)\n", This, debugstr_guid(pguidCmdGroup),
cCmds, prgCmds,
+ ULONG i;
+
+ TRACE("(%p)->(%s %u %p %p)\n", This, debugstr_guid(pguidCmdGroup),
cCmds, prgCmds,
pCmdText);
- while (prgCmds && (cCmds > i)) {
- FIXME("command_%u: %u, 0x%x\n", i, prgCmds[i].cmdID, prgCmds[i].cmdf);
- i++;
- }
+ for(i=0; prgCmds && i < cCmds; i++)
+ TRACE("unsupported command %u (%x)\n", prgCmds[i].cmdID,
prgCmds[i].cmdf);
+
return E_NOTIMPL;
}
@@ -683,7 +683,7 @@
notify_download_state(This, V_I4(pvaIn));
return S_OK;
default:
- FIXME("Unimplemented cmdid %d\n", nCmdID);
+ TRACE("Unimplemented cmdid %d\n", nCmdID);
return E_NOTIMPL;
}
}
@@ -735,7 +735,7 @@
}
default:
- FIXME("unsupported command %d of CGID_DocHostCmdPriv\n", nCmdID);
+ TRACE("unsupported command %d of CGID_DocHostCmdPriv\n", nCmdID);
return E_NOTIMPL;
}
}
@@ -748,7 +748,7 @@
return S_OK;
default:
- FIXME("Unimplemented cmdid %d of CGID_Explorer\n", nCmdID);
+ TRACE("Unimplemented cmdid %d of CGID_Explorer\n", nCmdID);
return E_NOTIMPL;
}
}
@@ -756,7 +756,7 @@
if(IsEqualGUID(pguidCmdGroup, &CGID_ShellDocView)) {
switch(nCmdID) {
default:
- FIXME("Unimplemented cmdid %d of CGID_ShellDocView\n", nCmdID);
+ TRACE("Unimplemented cmdid %d of CGID_ShellDocView\n", nCmdID);
return E_NOTIMPL;
}
}
@@ -767,7 +767,7 @@
return IOleCommandTarget_Exec(This->olecmd, pguidCmdGroup, nCmdID,
nCmdexecopt, pvaIn, pvaOut);
}
- FIXME("Unimplemented cmdid %d of group %s\n", nCmdID,
debugstr_guid(pguidCmdGroup));
+ TRACE("Unimplemented cmdid %d of group %s\n", nCmdID,
debugstr_guid(pguidCmdGroup));
return E_NOTIMPL;
}
Modified: trunk/reactos/dll/win32/ieframe/ieframe.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ieframe/ieframe.…
==============================================================================
--- trunk/reactos/dll/win32/ieframe/ieframe.h [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ieframe/ieframe.h [iso-8859-1] Wed Mar 2 10:41:57 2016
@@ -295,7 +295,7 @@
void set_doc_state(DocHost*,READYSTATE) DECLSPEC_HIDDEN;
void deactivate_document(DocHost*) DECLSPEC_HIDDEN;
void create_doc_view_hwnd(DocHost*) DECLSPEC_HIDDEN;
-void on_commandstate_change(DocHost*,LONG,VARIANT_BOOL) DECLSPEC_HIDDEN;
+void on_commandstate_change(DocHost*,LONG,BOOL) DECLSPEC_HIDDEN;
void notify_download_state(DocHost*,BOOL) DECLSPEC_HIDDEN;
void update_navigation_commands(DocHost *dochost) DECLSPEC_HIDDEN;
Modified: trunk/reactos/dll/win32/ieframe/iexplore.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ieframe/iexplore…
==============================================================================
--- trunk/reactos/dll/win32/ieframe/iexplore.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ieframe/iexplore.c [iso-8859-1] Wed Mar 2 10:41:57 2016
@@ -458,7 +458,7 @@
add_tb_button(ie, 4, ID_BROWSE_HOME, IDS_TB_HOME);
add_tb_separator(ie);
add_tb_button(ie, 5, ID_BROWSE_PRINT, IDS_TB_PRINT);
- SendMessageW(ie->toolbar_hwnd, TB_SETBUTTONSIZE, 0, MAKELPARAM(55,50));
+ SendMessageW(ie->toolbar_hwnd, TB_SETBUTTONSIZE, 0, MAKELPARAM(65,50));
SendMessageW(ie->toolbar_hwnd, TB_GETMAXSIZE, 0, (LPARAM)&toolbar_size);
bandinf.cbSize = sizeof(bandinf);
Modified: trunk/reactos/dll/win32/ieframe/intshcut.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ieframe/intshcut…
==============================================================================
--- trunk/reactos/dll/win32/ieframe/intshcut.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ieframe/intshcut.c [iso-8859-1] Wed Mar 2 10:41:57 2016
@@ -490,8 +490,7 @@
STGM_READWRITE | STGM_SHARE_EXCLUSIVE,
&pPropStg);
- get_profile_string(str_header, str_iconfile, pszFileName, &iconfile);
- if (iconfile != NULL)
+ if (get_profile_string(str_header, str_iconfile, pszFileName,
&iconfile))
{
PROPSPEC ps;
PROPVARIANT pv;
@@ -504,13 +503,10 @@
{
TRACE("Failed to store the iconfile to our property storage. hr
= 0x%x\n", hr);
}
-
- CoTaskMemFree(iconfile);
}
-
- get_profile_string(str_header, str_iconindex, pszFileName,
&iconindexstring);
-
- if (iconindexstring != NULL)
+ CoTaskMemFree(iconfile);
+
+ if (get_profile_string(str_header, str_iconindex, pszFileName,
&iconindexstring))
{
int iconindex;
PROPSPEC ps;
@@ -527,9 +523,8 @@
{
TRACE("Failed to store the iconindex to our property storage.
hr = 0x%x\n", hr);
}
-
- CoTaskMemFree(iconindexstring);
}
+ CoTaskMemFree(iconindexstring);
IPropertyStorage_Release(pPropStg);
}
Modified: trunk/reactos/dll/win32/ieframe/navigate.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ieframe/navigate…
==============================================================================
--- trunk/reactos/dll/win32/ieframe/navigate.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ieframe/navigate.c [iso-8859-1] Wed Mar 2 10:41:57 2016
@@ -872,8 +872,8 @@
}
notify_download_state(This, TRUE);
- on_commandstate_change(This, CSC_NAVIGATEBACK, VARIANT_FALSE);
- on_commandstate_change(This, CSC_NAVIGATEFORWARD, VARIANT_FALSE);
+ on_commandstate_change(This, CSC_NAVIGATEBACK, FALSE);
+ on_commandstate_change(This, CSC_NAVIGATEFORWARD, FALSE);
if(This->document)
deactivate_document(This);
Modified: trunk/reactos/dll/win32/ieframe/oleobject.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ieframe/oleobjec…
==============================================================================
--- trunk/reactos/dll/win32/ieframe/oleobject.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ieframe/oleobject.c [iso-8859-1] Wed Mar 2 10:41:57 2016
@@ -301,11 +301,6 @@
IOleInPlaceUIWindow_Release(This->uiwindow);
This->uiwindow = NULL;
}
-
- if(This->sink) {
- IAdviseSink_Release(This->sink);
- This->sink = NULL;
- }
}
typedef struct {
@@ -461,8 +456,8 @@
release_client_site(This);
if(!pClientSite) {
- on_commandstate_change(&This->doc_host, CSC_NAVIGATEBACK, VARIANT_FALSE);
- on_commandstate_change(&This->doc_host, CSC_NAVIGATEFORWARD,
VARIANT_FALSE);
+ on_commandstate_change(&This->doc_host, CSC_NAVIGATEBACK, FALSE);
+ on_commandstate_change(&This->doc_host, CSC_NAVIGATEFORWARD, FALSE);
if(This->doc_host.document)
deactivate_document(&This->doc_host);
Modified: trunk/reactos/dll/win32/ieframe/webbrowser.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ieframe/webbrows…
==============================================================================
--- trunk/reactos/dll/win32/ieframe/webbrowser.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/ieframe/webbrowser.c [iso-8859-1] Wed Mar 2 10:41:57 2016
@@ -160,6 +160,9 @@
TRACE("(%p) ref=%d\n", This, ref);
if(!ref) {
+ if(This->sink)
+ IAdviseSink_Release(This->sink);
+
if(This->doc_host.document)
IUnknown_Release(This->doc_host.document);
Modified: trunk/reactos/media/doc/README.WINE
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/media/doc/README.WINE?rev=…
==============================================================================
--- trunk/reactos/media/doc/README.WINE [iso-8859-1] (original)
+++ trunk/reactos/media/doc/README.WINE [iso-8859-1] Wed Mar 2 10:41:57 2016
@@ -74,7 +74,7 @@
reactos/dll/win32/hnetcfg # Synced to WineStaging-1.7.55
reactos/dll/win32/httpapi # Synced to WineStaging-1.7.55
reactos/dll/win32/iccvid # Synced to WineStaging-1.7.55
-reactos/dll/win32/ieframe # Synced to WineStaging-1.7.55
+reactos/dll/win32/ieframe # Synced to WineStaging-1.9.4
reactos/dll/win32/imaadp32.acm # Synced to WineStaging-1.7.55
reactos/dll/win32/imagehlp # Synced to WineStaging-1.7.55
reactos/dll/win32/imm32 # Synced to Wine-1.7.27