Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f0dd3efe
Commit
f0dd3efe
authored
Mar 17, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shdocvw: Assign to structs instead of using memcpy.
parent
15907b50
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
14 deletions
+14
-14
classinfo.c
dlls/shdocvw/classinfo.c
+1
-1
client.c
dlls/shdocvw/client.c
+1
-1
events.c
dlls/shdocvw/events.c
+2
-2
oleobject.c
dlls/shdocvw/oleobject.c
+4
-4
shlinstobj.c
dlls/shdocvw/shlinstobj.c
+1
-1
webbrowser.c
dlls/shdocvw/webbrowser.c
+5
-5
No files found.
dlls/shdocvw/classinfo.c
View file @
f0dd3efe
...
...
@@ -72,7 +72,7 @@ static HRESULT WINAPI ProvideClassInfo_GetGUID(IProvideClassInfo2 *iface,
if
(
dwGuidKind
!=
GUIDKIND_DEFAULT_SOURCE_DISP_IID
)
{
WARN
(
"Wrong GUID type: %d
\n
"
,
dwGuidKind
);
memcpy
(
pGUID
,
&
IID_NULL
,
sizeof
(
GUID
))
;
*
pGUID
=
IID_NULL
;
return
E_FAIL
;
}
...
...
dlls/shdocvw/client.c
View file @
f0dd3efe
...
...
@@ -222,7 +222,7 @@ static HRESULT WINAPI InPlaceSite_GetWindowContext(IOleInPlaceSite *iface,
*
ppDoc
=
NULL
;
GetClientRect
(
This
->
hwnd
,
lprcPosRect
);
memcpy
(
lprcClipRect
,
lprcPosRect
,
sizeof
(
RECT
))
;
*
lprcClipRect
=
*
lprcPosRect
;
lpFrameInfo
->
cb
=
sizeof
(
*
lpFrameInfo
);
lpFrameInfo
->
fMDIApp
=
FALSE
;
...
...
dlls/shdocvw/events.c
View file @
f0dd3efe
...
...
@@ -166,7 +166,7 @@ static HRESULT WINAPI ConnectionPoint_GetConnectionInterface(IConnectionPoint *i
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pIID
);
memcpy
(
pIID
,
&
This
->
iid
,
sizeof
(
IID
))
;
*
pIID
=
This
->
iid
;
return
S_OK
;
}
...
...
@@ -279,7 +279,7 @@ static void ConnectionPoint_Create(REFIID riid, ConnectionPoint **cp,
ret
->
sinks_size
=
0
;
ret
->
container
=
container
;
memcpy
(
&
ret
->
iid
,
riid
,
sizeof
(
IID
))
;
ret
->
iid
=
*
riid
;
*
cp
=
ret
;
}
...
...
dlls/shdocvw/oleobject.c
View file @
f0dd3efe
...
...
@@ -481,7 +481,7 @@ static HRESULT WINAPI OleObject_SetExtent(IOleObject *iface, DWORD dwDrawAspect,
TRACE
(
"(%p)->(%x %p)
\n
"
,
This
,
dwDrawAspect
,
psizel
);
/* Tests show that dwDrawAspect is ignored */
memcpy
(
&
This
->
extent
,
psizel
,
sizeof
(
SIZEL
))
;
This
->
extent
=
*
psizel
;
return
S_OK
;
}
...
...
@@ -492,7 +492,7 @@ static HRESULT WINAPI OleObject_GetExtent(IOleObject *iface, DWORD dwDrawAspect,
TRACE
(
"(%p)->(%x, %p)
\n
"
,
This
,
dwDrawAspect
,
psizel
);
/* Tests show that dwDrawAspect is ignored */
memcpy
(
psizel
,
&
This
->
extent
,
sizeof
(
SIZEL
))
;
*
psizel
=
This
->
extent
;
return
S_OK
;
}
...
...
@@ -631,10 +631,10 @@ static HRESULT WINAPI OleInPlaceObject_SetObjectRects(IOleInPlaceObject *iface,
TRACE
(
"(%p)->(%p %p)
\n
"
,
This
,
lprcPosRect
,
lprcClipRect
);
memcpy
(
&
This
->
pos_rect
,
lprcPosRect
,
sizeof
(
RECT
))
;
This
->
pos_rect
=
*
lprcPosRect
;
if
(
lprcClipRect
)
memcpy
(
&
This
->
clip_rect
,
lprcClipRect
,
sizeof
(
RECT
))
;
This
->
clip_rect
=
*
lprcClipRect
;
if
(
This
->
shell_embedding_hwnd
)
{
SetWindowPos
(
This
->
shell_embedding_hwnd
,
NULL
,
...
...
dlls/shdocvw/shlinstobj.c
View file @
f0dd3efe
...
...
@@ -326,7 +326,7 @@ static HRESULT InstanceObjectFactory_Constructor(REFCLSID rclsid, IPropertyBag *
if
(
pInstanceObjectFactory
)
{
pInstanceObjectFactory
->
lpIClassFactoryVtbl
=
&
InstanceObjectFactory_IClassFactoryVtbl
;
pInstanceObjectFactory
->
m_cRef
=
0
;
memcpy
(
&
pInstanceObjectFactory
->
m_clsidInstance
,
rclsid
,
sizeof
(
CLSID
))
;
pInstanceObjectFactory
->
m_clsidInstance
=
*
rclsid
;
pInstanceObjectFactory
->
m_pPropertyBag
=
pPropertyBag
;
IPropertyBag_AddRef
(
pPropertyBag
);
...
...
dlls/shdocvw/webbrowser.c
View file @
f0dd3efe
...
...
@@ -344,7 +344,7 @@ static HRESULT WINAPI WebBrowser_put_Left(IWebBrowser2 *iface, long Left)
if
(
!
This
->
inplace
)
return
E_UNEXPECTED
;
memcpy
(
&
rect
,
&
This
->
pos_rect
,
sizeof
(
RECT
))
;
rect
=
This
->
pos_rect
;
rect
.
left
=
Left
;
/* We don't really change the window position here.
...
...
@@ -372,7 +372,7 @@ static HRESULT WINAPI WebBrowser_put_Top(IWebBrowser2 *iface, long Top)
if
(
!
This
->
inplace
)
return
E_UNEXPECTED
;
memcpy
(
&
rect
,
&
This
->
pos_rect
,
sizeof
(
RECT
))
;
rect
=
This
->
pos_rect
;
rect
.
top
=
Top
;
/* We don't really change the window position here.
...
...
@@ -400,9 +400,9 @@ static HRESULT WINAPI WebBrowser_put_Width(IWebBrowser2 *iface, long Width)
if
(
!
This
->
inplace
)
return
E_UNEXPECTED
;
memcpy
(
&
rect
,
&
This
->
pos_rect
,
sizeof
(
RECT
))
;
rect
=
This
->
pos_rect
;
rect
.
right
=
rect
.
left
+
Width
;
/* We don't really change the window size here.
* We just notify the embedder that he should do so. */
return
IOleInPlaceSite_OnPosRectChange
(
This
->
inplace
,
&
rect
);
...
...
@@ -428,7 +428,7 @@ static HRESULT WINAPI WebBrowser_put_Height(IWebBrowser2 *iface, long Height)
if
(
!
This
->
inplace
)
return
E_UNEXPECTED
;
memcpy
(
&
rect
,
&
This
->
pos_rect
,
sizeof
(
RECT
))
;
rect
=
This
->
pos_rect
;
rect
.
bottom
=
rect
.
top
+
Height
;
/* We don't really change the window size here.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment