Marcus Meissner : mshtml: Check for This->frame.
Alexandre Julliard
julliard at winehq.org
Wed Jan 16 07:09:34 CST 2008
Module: wine
Branch: master
Commit: fa6042fc8d93908ac73b43a051d1bfe0e8d54851
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fa6042fc8d93908ac73b43a051d1bfe0e8d54851
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Sun Jan 13 12:27:14 2008 +0100
mshtml: Check for This->frame.
---
dlls/mshtml/olecmd.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/mshtml/olecmd.c b/dlls/mshtml/olecmd.c
index 326b0b0..afc3cc8 100644
--- a/dlls/mshtml/olecmd.c
+++ b/dlls/mshtml/olecmd.c
@@ -629,7 +629,8 @@ static HRESULT exec_editmode(HTMLDocument *This, DWORD cmdexecopt, VARIANT *in,
call_set_active_object(This->ip_window, ACTOBJ(This));
memset(&rcBorderWidths, 0, sizeof(rcBorderWidths));
- IOleInPlaceFrame_SetBorderSpace(This->frame, &rcBorderWidths);
+ if (This->frame)
+ IOleInPlaceFrame_SetBorderSpace(This->frame, &rcBorderWidths);
}
return S_OK;
More information about the wine-cvs
mailing list