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
599f58cc
Commit
599f58cc
authored
Mar 15, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
secur32: Assign to structs instead of using memcpy.
parent
bd0fec25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
secur32.c
dlls/secur32/secur32.c
+1
-1
wrapper.c
dlls/secur32/wrapper.c
+2
-2
No files found.
dlls/secur32/secur32.c
View file @
599f58cc
...
...
@@ -745,7 +745,7 @@ SECURITY_STATUS WINAPI EnumerateSecurityPackagesW(PULONG pcPackages,
{
PSecPkgInfoW
pkgInfo
=
*
ppPackageInfo
+
i
++
;
memcpy
(
pkgInfo
,
&
package
->
infoW
,
sizeof
(
SecPkgInfoW
))
;
*
pkgInfo
=
package
->
infoW
;
if
(
package
->
infoW
.
Name
)
{
TRACE
(
"Name[%d] = %s
\n
"
,
i
-
1
,
debugstr_w
(
package
->
infoW
.
Name
));
...
...
dlls/secur32/wrapper.c
View file @
599f58cc
...
...
@@ -45,7 +45,7 @@ static SECURITY_STATUS SECUR32_makeSecHandle(PSecHandle phSec,
if
(
newSec
)
{
memcpy
(
newSec
,
realHandle
,
sizeof
(
*
realHandle
))
;
*
newSec
=
*
realHandle
;
phSec
->
dwUpper
=
(
ULONG_PTR
)
package
;
phSec
->
dwLower
=
(
ULONG_PTR
)
newSec
;
ret
=
SEC_E_OK
;
...
...
@@ -778,7 +778,7 @@ SECURITY_STATUS WINAPI QuerySecurityPackageInfoW(SEC_WCHAR *pszPackageName,
PWSTR
nextString
=
(
PWSTR
)((
PBYTE
)
*
ppPackageInfo
+
sizeof
(
SecPkgInfoW
));
memcpy
(
*
ppPackageInfo
,
&
package
->
infoW
,
sizeof
(
package
->
infoW
))
;
**
ppPackageInfo
=
package
->
infoW
;
if
(
package
->
infoW
.
Name
)
{
(
*
ppPackageInfo
)
->
Name
=
nextString
;
...
...
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