diff --git a/reactos/dll/win32/mshtml/view.c b/reactos/dll/win32/mshtml/view.c
index 5c096ed9928..784b7b0475b 100644
--- a/reactos/dll/win32/mshtml/view.c
+++ b/reactos/dll/win32/mshtml/view.c
@@ -259,6 +259,7 @@ static HRESULT activate_window(HTMLDocumentObj *This)
return FAILED(hres) ? hres : E_FAIL;
}
+ frameinfo.cb = sizeof(OLEINPLACEFRAMEINFO);
hres = IOleInPlaceSite_GetWindowContext(This->ipsite, &pIPFrame, &This->ip_window,
&posrect, &cliprect, &frameinfo);
if(FAILED(hres)) {
diff --git a/reactos/dll/win32/shdocvw/client.c b/reactos/dll/win32/shdocvw/client.c
index 17fa35f96d1..a2f2927ef6e 100644
--- a/reactos/dll/win32/shdocvw/client.c
+++ b/reactos/dll/win32/shdocvw/client.c
@@ -227,7 +227,6 @@ static HRESULT WINAPI InPlaceSite_GetWindowContext(IOleInPlaceSite *iface,
GetClientRect(This->hwnd, lprcPosRect);
*lprcClipRect = *lprcPosRect;
- lpFrameInfo->cb = sizeof(*lpFrameInfo);
lpFrameInfo->fMDIApp = FALSE;
lpFrameInfo->hwndFrame = This->frame_hwnd;
lpFrameInfo->haccel = NULL;
diff --git a/reactos/dll/win32/shdocvw/oleobject.c b/reactos/dll/win32/shdocvw/oleobject.c
index 933b5629cea..49a4d3b45f8 100644
--- a/reactos/dll/win32/shdocvw/oleobject.c
+++ b/reactos/dll/win32/shdocvw/oleobject.c
@@ -141,6 +141,7 @@ static HRESULT activate_inplace(WebBrowser *This, IOleClientSite *active_site)
IOleInPlaceSite_OnInPlaceActivate(This->inplace);
+ This->frameinfo.cb = sizeof(OLEINPLACEFRAMEINFO);
IOleInPlaceSite_GetWindowContext(This->inplace, &This->doc_host.frame, &This->uiwindow,
&This->pos_rect, &This->clip_rect,
&This->frameinfo);