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
5ecd33e2
Commit
5ecd33e2
authored
Mar 08, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Assign to structs instead of using memcpy.
parent
40c7031d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
reg.c
dlls/ntdll/reg.c
+1
-1
sec.c
dlls/ntdll/sec.c
+2
-2
time.c
dlls/ntdll/time.c
+1
-1
No files found.
dlls/ntdll/reg.c
View file @
5ecd33e2
...
...
@@ -96,7 +96,7 @@ NTSTATUS WINAPI RtlpNtCreateKey( PHANDLE retkey, ACCESS_MASK access, const OBJEC
if
(
attr
)
{
memcpy
(
&
oa
,
attr
,
sizeof
oa
)
;
oa
=
*
attr
;
oa
.
Attributes
&=
~
(
OBJ_PERMANENT
|
OBJ_EXCLUSIVE
);
attr
=
&
oa
;
}
...
...
dlls/ntdll/sec.c
View file @
5ecd33e2
...
...
@@ -158,7 +158,7 @@ NTSTATUS WINAPI RtlAllocateAndInitializeSid (
tmp_sid
->
Revision
=
SID_REVISION
;
if
(
pIdentifierAuthority
)
memcpy
(
&
tmp_sid
->
IdentifierAuthority
,
pIdentifierAuthority
,
sizeof
(
SID_IDENTIFIER_AUTHORITY
))
;
tmp_sid
->
IdentifierAuthority
=
*
pIdentifierAuthority
;
tmp_sid
->
SubAuthorityCount
=
nSubAuthorityCount
;
switch
(
nSubAuthorityCount
)
...
...
@@ -302,7 +302,7 @@ BOOL WINAPI RtlInitializeSid(
pisid
->
Revision
=
SID_REVISION
;
pisid
->
SubAuthorityCount
=
nSubAuthorityCount
;
if
(
pIdentifierAuthority
)
memcpy
(
&
pisid
->
IdentifierAuthority
,
pIdentifierAuthority
,
sizeof
(
SID_IDENTIFIER_AUTHORITY
))
;
pisid
->
IdentifierAuthority
=
*
pIdentifierAuthority
;
for
(
i
=
0
;
i
<
nSubAuthorityCount
;
i
++
)
*
RtlSubAuthoritySid
(
pSid
,
i
)
=
0
;
...
...
dlls/ntdll/time.c
View file @
5ecd33e2
...
...
@@ -684,7 +684,7 @@ static void find_reg_tz_info(RTL_TIME_ZONE_INFORMATION *tzi)
if
(
match_tz_info
(
tzi
,
&
reg_tzi
))
{
memcpy
(
tzi
,
&
reg_tzi
,
sizeof
(
*
tzi
))
;
*
tzi
=
reg_tzi
;
NtClose
(
hkey
);
return
;
}
...
...
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