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
a63749cc
Commit
a63749cc
authored
Oct 23, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Oct 24, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Sign-compare warnings fix.
parent
3aae9546
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
11 deletions
+12
-11
cdrom.c
dlls/ntdll/cdrom.c
+1
-1
heap.c
dlls/ntdll/heap.c
+3
-3
reg.c
dlls/ntdll/reg.c
+1
-1
rtlstr.c
dlls/ntdll/rtlstr.c
+5
-4
thread.c
dlls/ntdll/thread.c
+2
-2
No files found.
dlls/ntdll/cdrom.c
View file @
a63749cc
...
...
@@ -1370,7 +1370,7 @@ static NTSTATUS CDROM_RawRead(int fd, const RAW_READ_INFO* raw, void* buffer, DW
DWORD
lba
=
raw
->
DiskOffset
.
QuadPart
>>
11
;
struct
cdrom_msf
*
msf
;
PBYTE
*
bp
;
/* current buffer pointer */
int
i
;
DWORD
i
;
if
((
lba
+
raw
->
SectorCount
)
>
((
1
<<
8
*
sizeof
(
msf
->
cdmsf_min0
))
*
CD_SECS
*
CD_FRAMES
...
...
dlls/ntdll/heap.c
View file @
a63749cc
...
...
@@ -256,7 +256,7 @@ static RTL_CRITICAL_SECTION_DEBUG process_heap_critsect_debug =
*/
static
void
HEAP_Dump
(
HEAP
*
heap
)
{
int
i
;
unsigned
int
i
;
SUBHEAP
*
subheap
;
char
*
ptr
;
...
...
@@ -620,7 +620,7 @@ static SUBHEAP *HEAP_InitSubHeap( HEAP *heap, LPVOID address, DWORD flags,
{
SUBHEAP
*
subheap
;
FREE_LIST_ENTRY
*
pEntry
;
int
i
;
unsigned
int
i
;
/* Commit memory */
...
...
@@ -819,7 +819,7 @@ static ARENA_FREE *HEAP_FindFreeBlock( HEAP *heap, SIZE_T size,
*/
static
BOOL
HEAP_IsValidArenaPtr
(
const
HEAP
*
heap
,
const
ARENA_FREE
*
ptr
)
{
int
i
;
unsigned
int
i
;
const
SUBHEAP
*
subheap
=
HEAP_FindSubHeap
(
heap
,
ptr
);
if
(
!
subheap
)
return
FALSE
;
if
((
const
char
*
)
ptr
>=
(
const
char
*
)
subheap
->
base
+
subheap
->
headerSize
)
return
TRUE
;
...
...
dlls/ntdll/reg.c
View file @
a63749cc
...
...
@@ -899,7 +899,7 @@ static NTSTATUS RTL_ReportRegistryValue(PKEY_VALUE_FULL_INFORMATION pInfo,
NTSTATUS
status
=
STATUS_SUCCESS
;
ULONG
len
;
LPWSTR
String
;
INT
count
=
0
;
ULONG
count
=
0
;
if
(
pInfo
==
NULL
)
{
...
...
dlls/ntdll/rtlstr.c
View file @
a63749cc
...
...
@@ -1511,8 +1511,7 @@ NTSTATUS WINAPI RtlFindCharInUnicodeString(
const
UNICODE_STRING
*
search_chars
,
/* [I] Unicode string which contains the characters to search for */
USHORT
*
pos
)
/* [O] Position of the first character found + 2 */
{
int
main_idx
;
unsigned
int
search_idx
;
unsigned
int
main_idx
,
search_idx
;
switch
(
flags
)
{
case
0
:
...
...
@@ -1527,7 +1526,8 @@ NTSTATUS WINAPI RtlFindCharInUnicodeString(
*
pos
=
0
;
return
STATUS_NOT_FOUND
;
case
1
:
for
(
main_idx
=
main_str
->
Length
/
sizeof
(
WCHAR
)
-
1
;
main_idx
>=
0
;
main_idx
--
)
{
main_idx
=
main_str
->
Length
/
sizeof
(
WCHAR
);
while
(
main_idx
--
>
0
)
{
for
(
search_idx
=
0
;
search_idx
<
search_chars
->
Length
/
sizeof
(
WCHAR
);
search_idx
++
)
{
if
(
main_str
->
Buffer
[
main_idx
]
==
search_chars
->
Buffer
[
search_idx
])
{
*
pos
=
main_idx
*
sizeof
(
WCHAR
);
...
...
@@ -1552,7 +1552,8 @@ NTSTATUS WINAPI RtlFindCharInUnicodeString(
*
pos
=
0
;
return
STATUS_NOT_FOUND
;
case
3
:
for
(
main_idx
=
main_str
->
Length
/
sizeof
(
WCHAR
)
-
1
;
main_idx
>=
0
;
main_idx
--
)
{
main_idx
=
main_str
->
Length
/
sizeof
(
WCHAR
);
while
(
main_idx
--
>
0
)
{
search_idx
=
0
;
while
(
search_idx
<
search_chars
->
Length
/
sizeof
(
WCHAR
)
&&
main_str
->
Buffer
[
main_idx
]
!=
search_chars
->
Buffer
[
search_idx
])
{
...
...
dlls/ntdll/thread.c
View file @
a63749cc
...
...
@@ -274,8 +274,8 @@ HANDLE thread_init(void)
/* allocate and initialize the initial TEB */
sigstack_total_size
=
get_signal_stack_total_size
();
while
(
1
<<
sigstack_zero_bits
<
sigstack_total_size
)
sigstack_zero_bits
++
;
assert
(
1
<<
sigstack_zero_bits
==
sigstack_total_size
);
/* must be a power of 2 */
while
(
1
U
<<
sigstack_zero_bits
<
sigstack_total_size
)
sigstack_zero_bits
++
;
assert
(
1
U
<<
sigstack_zero_bits
==
sigstack_total_size
);
/* must be a power of 2 */
assert
(
sigstack_total_size
>=
sizeof
(
TEB
)
+
sizeof
(
struct
startup_info
)
);
thread_info
.
teb_size
=
sigstack_total_size
;
...
...
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