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
1ebe82af
Commit
1ebe82af
authored
Dec 28, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Dec 31, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Remove unneeded casts.
parent
8402f7a4
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
8 deletions
+8
-8
critsection.c
dlls/ntdll/critsection.c
+1
-1
heap.c
dlls/ntdll/heap.c
+2
-2
reg.c
dlls/ntdll/reg.c
+1
-1
relay.c
dlls/ntdll/relay.c
+1
-1
sec.c
dlls/ntdll/sec.c
+2
-2
threadpool.c
dlls/ntdll/threadpool.c
+1
-1
No files found.
dlls/ntdll/critsection.c
View file @
1ebe82af
...
...
@@ -209,7 +209,7 @@ static inline HANDLE get_semaphore( RTL_CRITICAL_SECTION *crit )
HANDLE
sem
;
if
(
NtCreateSemaphore
(
&
sem
,
SEMAPHORE_ALL_ACCESS
,
NULL
,
0
,
1
))
return
0
;
if
(
!
(
ret
=
(
HANDLE
)
interlocked_cmpxchg_ptr
(
(
PVOID
*
)
&
crit
->
LockSemaphore
,
(
PVOID
)
sem
,
0
)))
sem
,
0
)))
ret
=
sem
;
else
NtClose
(
sem
);
/* somebody beat us to it */
...
...
dlls/ntdll/heap.c
View file @
1ebe82af
...
...
@@ -1621,8 +1621,8 @@ NTSTATUS WINAPI RtlWalkHeap( HANDLE heap, PVOID entry_ptr )
ptr
=
entry
->
lpData
;
LIST_FOR_EACH_ENTRY
(
sub
,
&
heapPtr
->
subheap_list
,
SUBHEAP
,
entry
)
{
if
((
(
char
*
)
ptr
>=
(
char
*
)
sub
->
base
)
&&
(
(
char
*
)
ptr
<
(
char
*
)
sub
->
base
+
sub
->
size
))
if
((
ptr
>=
(
char
*
)
sub
->
base
)
&&
(
ptr
<
(
char
*
)
sub
->
base
+
sub
->
size
))
{
currentheap
=
sub
;
break
;
...
...
dlls/ntdll/reg.c
View file @
1ebe82af
...
...
@@ -833,7 +833,7 @@ NTSTATUS WINAPI RtlFormatCurrentUserKeyPath( IN OUT PUNICODE_STRING KeyPath)
KeyPath
->
Buffer
=
(
PWCHAR
)((
LPBYTE
)
buf
+
sizeof
(
pathW
));
status
=
RtlConvertSidToUnicodeString
(
KeyPath
,
((
TOKEN_USER
*
)
buffer
)
->
User
.
Sid
,
FALSE
);
KeyPath
->
Buffer
=
(
PWCHAR
)
buf
;
KeyPath
->
Buffer
=
buf
;
KeyPath
->
Length
+=
sizeof
(
pathW
);
KeyPath
->
MaximumLength
+=
sizeof
(
pathW
);
}
...
...
dlls/ntdll/relay.c
View file @
1ebe82af
...
...
@@ -526,7 +526,7 @@ void RELAY_SetupDLL( HMODULE module )
/* patch the functions in the export table to point to the relay thunks */
funcs
=
(
DWORD
*
)((
char
*
)
module
+
exports
->
AddressOfFunctions
);
entry_point_rva
=
(
const
char
*
)
descr
->
entry_point_base
-
(
const
char
*
)
module
;
entry_point_rva
=
descr
->
entry_point_base
-
(
const
char
*
)
module
;
for
(
i
=
0
;
i
<
exports
->
NumberOfFunctions
;
i
++
,
funcs
++
)
{
if
(
!
descr
->
entry_point_offsets
[
i
])
continue
;
/* not a normal function */
...
...
dlls/ntdll/sec.c
View file @
1ebe82af
...
...
@@ -66,8 +66,8 @@ static BOOLEAN copy_acl(DWORD nDestinationAclLength, PACL pDestinationAcl, PACL
if
(
!
pSourceAcl
||
!
RtlValidAcl
(
pSourceAcl
))
return
FALSE
;
size
=
((
ACL
*
)
pSourceAcl
)
->
AclSize
;
size
=
pSourceAcl
->
AclSize
;
if
(
nDestinationAclLength
<
size
)
return
FALSE
;
...
...
dlls/ntdll/threadpool.c
View file @
1ebe82af
...
...
@@ -148,7 +148,7 @@ static NTSTATUS add_work_item_to_queue(struct work_item *work_item)
{
HANDLE
sem
;
status
=
NtCreateSemaphore
(
&
sem
,
SEMAPHORE_ALL_ACCESS
,
NULL
,
1
,
LONG_MAX
);
if
(
interlocked_cmpxchg_ptr
(
(
PVOID
*
)
&
work_item_event
,
(
PVOID
)
sem
,
0
))
if
(
interlocked_cmpxchg_ptr
(
(
PVOID
*
)
&
work_item_event
,
sem
,
0
))
NtClose
(
sem
);
/* somebody beat us to it */
}
else
...
...
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