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
1b2dc823
Commit
1b2dc823
authored
Mar 13, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 14, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledlg: Assign to structs instead of using memcpy.
parent
612e4c2b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
insobjdlg.c
dlls/oledlg/insobjdlg.c
+2
-2
No files found.
dlls/oledlg/insobjdlg.c
View file @
1b2dc823
...
...
@@ -377,7 +377,7 @@ static BOOL UIINSERTOBJECTDLG_PopulateObjectTypes(InsertObjectDlgInfo* pdlgInfo)
if
(
ERROR_SUCCESS
==
RegQueryValueW
(
hkey
,
NULL
,
keydesc
,
&
len
))
{
CLSID
*
lpclsid
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
CLSID
));
memcpy
(
lpclsid
,
&
clsid
,
sizeof
(
CLSID
))
;
*
lpclsid
=
clsid
;
len
=
SendMessageW
(
pdlgInfo
->
hwndObjTypeLB
,
LB_ADDSTRING
,
0
,
(
LPARAM
)
keydesc
);
SendMessageW
(
pdlgInfo
->
hwndObjTypeLB
,
LB_SETITEMDATA
,
(
WPARAM
)
len
,
(
LPARAM
)
lpclsid
);
...
...
@@ -453,7 +453,7 @@ static BOOL UIINSERTOBJECTDLG_OnOpen(InsertObjectDlgInfo* pdlgInfo)
{
CLSID
*
clsid
=
(
CLSID
*
)
SendMessageA
(
pdlgInfo
->
hwndObjTypeLB
,
LB_GETITEMDATA
,
(
WPARAM
)
index
,
0
);
memcpy
(
&
pdlgInfo
->
lpOleUIInsertObject
->
clsid
,
clsid
,
sizeof
(
CLSID
))
;
pdlgInfo
->
lpOleUIInsertObject
->
clsid
=
*
clsid
;
if
(
pdlgInfo
->
lpOleUIInsertObject
->
dwFlags
&
IOF_CREATENEWOBJECT
)
{
...
...
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