Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
2cce0040
Commit
2cce0040
authored
Mar 17, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Assign to structs instead of using memcpy.
parent
f0dd3efe
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
13 additions
and
13 deletions
+13
-13
cpanelfolder.c
dlls/shell32/cpanelfolder.c
+2
-2
folders.c
dlls/shell32/folders.c
+1
-1
pidl.c
dlls/shell32/pidl.c
+1
-1
recyclebin.c
dlls/shell32/recyclebin.c
+1
-1
shelllink.c
dlls/shell32/shelllink.c
+2
-2
shfldr_unixfs.c
dlls/shell32/shfldr_unixfs.c
+1
-1
shlexec.c
dlls/shell32/shlexec.c
+1
-1
shlfileop.c
dlls/shell32/shlfileop.c
+2
-2
shlfsbind.c
dlls/shell32/shlfsbind.c
+2
-2
No files found.
dlls/shell32/cpanelfolder.c
View file @
2cce0040
...
...
@@ -997,7 +997,7 @@ static HRESULT WINAPI IShellExecuteHookW_fnExecute(IShellExecuteHookW* iface, LP
MultiByteToWideChar
(
CP_ACP
,
0
,
pcpanel
->
szName
+
pcpanel
->
offsDispName
,
-
1
,
params
,
MAX_PATH
);
memcpy
(
&
sei_tmp
,
psei
,
sizeof
(
sei_tmp
))
;
sei_tmp
=
*
psei
;
sei_tmp
.
lpFile
=
path
;
sei_tmp
.
lpParameters
=
params
;
sei_tmp
.
fMask
&=
~
SEE_MASK_INVOKEIDLIST
;
...
...
@@ -1078,7 +1078,7 @@ static HRESULT WINAPI IShellExecuteHookA_fnExecute(IShellExecuteHookA* iface, LP
lstrcatA
(
path
,
"
\"
"
);
lstrcatA
(
path
,
pcpanel
->
szName
+
pcpanel
->
offsDispName
);
memcpy
(
&
sei_tmp
,
psei
,
sizeof
(
sei_tmp
))
;
sei_tmp
=
*
psei
;
sei_tmp
.
lpFile
=
path
;
sei_tmp
.
fMask
&=
~
SEE_MASK_INVOKEIDLIST
;
...
...
dlls/shell32/folders.c
View file @
2cce0040
...
...
@@ -554,7 +554,7 @@ static HRESULT WINAPI IEIPersistFile_fnGetClassID(
if
(
lpClassId
==
NULL
)
return
E_POINTER
;
memcpy
(
lpClassId
,
&
StdFolderID
,
sizeof
(
StdFolderID
))
;
*
lpClassId
=
StdFolderID
;
return
S_OK
;
}
...
...
dlls/shell32/pidl.c
View file @
2cce0040
...
...
@@ -1444,7 +1444,7 @@ LPITEMIDLIST _ILCreateGuid(PIDLTYPE type, REFIID guid)
{
LPPIDLDATA
pData
=
_ILGetDataPointer
(
pidlOut
);
memcpy
(
&
(
pData
->
u
.
guid
.
guid
),
guid
,
sizeof
(
GUID
))
;
pData
->
u
.
guid
.
guid
=
*
guid
;
TRACE
(
"-- create GUID-pidl %s
\n
"
,
debugstr_guid
(
&
(
pData
->
u
.
guid
.
guid
)));
}
...
...
dlls/shell32/recyclebin.c
View file @
2cce0040
...
...
@@ -332,7 +332,7 @@ static HRESULT WINAPI RecycleBin_GetClassID(IPersistFolder2 *This, CLSID *pClass
TRACE
(
"(%p, %p)
\n
"
,
This
,
pClassID
);
if
(
This
==
NULL
||
pClassID
==
NULL
)
return
E_INVALIDARG
;
memcpy
(
pClassID
,
&
CLSID_RecycleBin
,
sizeof
(
CLSID
))
;
*
pClassID
=
CLSID_RecycleBin
;
return
S_OK
;
}
...
...
dlls/shell32/shelllink.c
View file @
2cce0040
...
...
@@ -320,7 +320,7 @@ static HRESULT ShellLink_GetClassID( IShellLinkImpl *This, CLSID *pclsid )
{
TRACE
(
"%p %p
\n
"
,
This
,
pclsid
);
memcpy
(
pclsid
,
&
CLSID_ShellLink
,
sizeof
(
CLSID
)
)
;
*
pclsid
=
CLSID_ShellLink
;
return
S_OK
;
}
...
...
@@ -1079,7 +1079,7 @@ static HRESULT WINAPI IPersistStream_fnSave(
memset
(
&
header
,
0
,
sizeof
(
header
));
header
.
dwSize
=
sizeof
(
header
);
header
.
fStartup
=
This
->
iShowCmd
;
memcpy
(
&
header
.
MagicGuid
,
&
CLSID_ShellLink
,
sizeof
(
header
.
MagicGuid
)
)
;
header
.
MagicGuid
=
CLSID_ShellLink
;
header
.
wHotKey
=
This
->
wHotKey
;
header
.
nIcon
=
This
->
iIcoNdx
;
...
...
dlls/shell32/shfldr_unixfs.c
View file @
2cce0040
...
...
@@ -1459,7 +1459,7 @@ static HRESULT WINAPI UnixFolder_IPersistFolder3_GetClassID(IPersistFolder3* ifa
if
(
!
pClassID
)
return
E_INVALIDARG
;
memcpy
(
pClassID
,
This
->
m_pCLSID
,
sizeof
(
CLSID
))
;
*
pClassID
=
*
This
->
m_pCLSID
;
return
S_OK
;
}
...
...
dlls/shell32/shlexec.c
View file @
2cce0040
...
...
@@ -1470,7 +1470,7 @@ BOOL SHELL_execute( LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfunc )
BOOL
appKnownSingular
=
FALSE
;
/* make a local copy of the LPSHELLEXECUTEINFO structure and work with this from now on */
memcpy
(
&
sei_tmp
,
sei
,
sizeof
(
sei_tmp
))
;
sei_tmp
=
*
sei
;
TRACE
(
"mask=0x%08x hwnd=%p verb=%s file=%s parm=%s dir=%s show=0x%08x class=%s
\n
"
,
sei_tmp
.
fMask
,
sei_tmp
.
hwnd
,
debugstr_w
(
sei_tmp
.
lpVerb
),
...
...
dlls/shell32/shlfileop.c
View file @
2cce0040
...
...
@@ -1112,7 +1112,7 @@ static void copy_dir_to_dir(FILE_OPERATION *op, const FILE_ENTRY *feFrom, LPCWST
PathCombineW
(
szFrom
,
feFrom
->
szFullPath
,
wildCardFiles
);
szFrom
[
lstrlenW
(
szFrom
)
+
1
]
=
'\0'
;
memcpy
(
&
fileOp
,
op
->
req
,
sizeof
(
fileOp
))
;
fileOp
=
*
op
->
req
;
fileOp
.
pFrom
=
szFrom
;
fileOp
.
pTo
=
szTo
;
fileOp
.
fFlags
&=
~
FOF_MULTIDESTFILES
;
/* we know we're copying to one dir */
...
...
@@ -1373,7 +1373,7 @@ static void move_dir_to_dir(LPSHFILEOPSTRUCTW lpFileOp, const FILE_ENTRY *feFrom
lstrcpyW
(
szTo
,
szDestPath
);
szTo
[
lstrlenW
(
szDestPath
)
+
1
]
=
'\0'
;
memcpy
(
&
fileOp
,
lpFileOp
,
sizeof
(
fileOp
))
;
fileOp
=
*
lpFileOp
;
fileOp
.
pFrom
=
szFrom
;
fileOp
.
pTo
=
szTo
;
...
...
dlls/shell32/shlfsbind.c
View file @
2cce0040
...
...
@@ -207,7 +207,7 @@ static HRESULT WINAPI IFileSystemBindData_fnGetFindData(
if
(
!
pfd
)
return
E_INVALIDARG
;
memcpy
(
pfd
,
&
This
->
findFile
,
sizeof
(
WIN32_FIND_DATAW
))
;
*
pfd
=
This
->
findFile
;
return
NOERROR
;
}
...
...
@@ -218,7 +218,7 @@ static HRESULT WINAPI IFileSystemBindData_fnSetFindData(
TRACE
(
"(%p), %p
\n
"
,
This
,
pfd
);
if
(
pfd
)
memcpy
(
&
This
->
findFile
,
pfd
,
sizeof
(
WIN32_FIND_DATAW
))
;
This
->
findFile
=
*
pfd
;
else
memset
(
&
This
->
findFile
,
0
,
sizeof
(
WIN32_FIND_DATAW
));
return
NOERROR
;
...
...
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