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
741b65c2
Commit
741b65c2
authored
Jul 11, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Jul 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Remove unneeded address-of operators from array names.
parent
0f75796a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
8 deletions
+8
-8
cdrom.c
dlls/ntdll/cdrom.c
+1
-1
heap.c
dlls/ntdll/heap.c
+1
-1
nt.c
dlls/ntdll/nt.c
+5
-5
sec.c
dlls/ntdll/sec.c
+1
-1
No files found.
dlls/ntdll/cdrom.c
View file @
741b65c2
...
...
@@ -567,7 +567,7 @@ static int CDROM_GetInterfaceInfo(int fd, UCHAR* iface, UCHAR* port, UCHAR* devi
{
#ifdef SCSI_IOCTL_GET_IDLUN
UINT32
idlun
[
2
];
if
(
ioctl
(
fd
,
SCSI_IOCTL_GET_IDLUN
,
&
idlun
)
!=
-
1
)
if
(
ioctl
(
fd
,
SCSI_IOCTL_GET_IDLUN
,
idlun
)
!=
-
1
)
{
*
port
=
(
idlun
[
0
]
>>
24
)
&
0xff
;
*
iface
=
((
idlun
[
0
]
>>
16
)
&
0xff
)
+
2
;
...
...
dlls/ntdll/heap.c
View file @
741b65c2
...
...
@@ -1106,7 +1106,7 @@ HANDLE WINAPI RtlCreateHeap( ULONG flags, PVOID addr, SIZE_T totalSize, SIZE_T c
processHeap
=
subheap
->
heap
;
/* assume the first heap we create is the process main heap */
list_init
(
&
processHeap
->
entry
);
/* make sure structure alignment is correct */
assert
(
(
ULONG_PTR
)
&
processHeap
->
freeList
%
ALIGNMENT
==
0
);
assert
(
(
ULONG_PTR
)
processHeap
->
freeList
%
ALIGNMENT
==
0
);
}
return
(
HANDLE
)
subheap
->
heap
;
...
...
dlls/ntdll/nt.c
View file @
741b65c2
...
...
@@ -170,11 +170,11 @@ NTSTATUS WINAPI NtAdjustPrivilegesToken(
req
->
get_modified_state
=
(
PreviousState
!=
NULL
);
if
(
!
DisableAllPrivileges
)
{
wine_server_add_data
(
req
,
&
NewState
->
Privileges
,
wine_server_add_data
(
req
,
NewState
->
Privileges
,
NewState
->
PrivilegeCount
*
sizeof
(
NewState
->
Privileges
[
0
])
);
}
if
(
PreviousState
&&
BufferLength
>=
FIELD_OFFSET
(
TOKEN_PRIVILEGES
,
Privileges
))
wine_server_set_reply
(
req
,
&
PreviousState
->
Privileges
,
wine_server_set_reply
(
req
,
PreviousState
->
Privileges
,
BufferLength
-
FIELD_OFFSET
(
TOKEN_PRIVILEGES
,
Privileges
)
);
ret
=
wine_server_call
(
req
);
if
(
PreviousState
)
...
...
@@ -347,7 +347,7 @@ NTSTATUS WINAPI NtQueryInformationToken(
TOKEN_PRIVILEGES
*
tpriv
=
tokeninfo
;
req
->
handle
=
token
;
if
(
tpriv
&&
tokeninfolength
>
FIELD_OFFSET
(
TOKEN_PRIVILEGES
,
Privileges
))
wine_server_set_reply
(
req
,
&
tpriv
->
Privileges
,
tokeninfolength
-
FIELD_OFFSET
(
TOKEN_PRIVILEGES
,
Privileges
)
);
wine_server_set_reply
(
req
,
tpriv
->
Privileges
,
tokeninfolength
-
FIELD_OFFSET
(
TOKEN_PRIVILEGES
,
Privileges
)
);
status
=
wine_server_call
(
req
);
if
(
retlen
)
*
retlen
=
FIELD_OFFSET
(
TOKEN_PRIVILEGES
,
Privileges
)
+
reply
->
len
;
if
(
tpriv
)
tpriv
->
PrivilegeCount
=
reply
->
len
/
sizeof
(
LUID_AND_ATTRIBUTES
);
...
...
@@ -471,9 +471,9 @@ NTSTATUS WINAPI NtPrivilegeCheck(
{
req
->
handle
=
ClientToken
;
req
->
all_required
=
((
RequiredPrivileges
->
Control
&
PRIVILEGE_SET_ALL_NECESSARY
)
?
TRUE
:
FALSE
);
wine_server_add_data
(
req
,
&
RequiredPrivileges
->
Privilege
,
wine_server_add_data
(
req
,
RequiredPrivileges
->
Privilege
,
RequiredPrivileges
->
PrivilegeCount
*
sizeof
(
RequiredPrivileges
->
Privilege
[
0
])
);
wine_server_set_reply
(
req
,
&
RequiredPrivileges
->
Privilege
,
wine_server_set_reply
(
req
,
RequiredPrivileges
->
Privilege
,
RequiredPrivileges
->
PrivilegeCount
*
sizeof
(
RequiredPrivileges
->
Privilege
[
0
])
);
status
=
wine_server_call
(
req
);
...
...
dlls/ntdll/sec.c
View file @
741b65c2
...
...
@@ -1577,7 +1577,7 @@ NtAccessCheck(
wine_server_add_data
(
req
,
sacl
,
sd
.
sacl_len
);
wine_server_add_data
(
req
,
dacl
,
sd
.
dacl_len
);
wine_server_set_reply
(
req
,
&
PrivilegeSet
->
Privilege
,
*
ReturnLength
-
FIELD_OFFSET
(
PRIVILEGE_SET
,
Privilege
)
);
wine_server_set_reply
(
req
,
PrivilegeSet
->
Privilege
,
*
ReturnLength
-
FIELD_OFFSET
(
PRIVILEGE_SET
,
Privilege
)
);
status
=
wine_server_call
(
req
);
...
...
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