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
a624977f
Commit
a624977f
authored
Jul 25, 2006
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Fix some comparisons between signed and unsigned.
parent
0f273c17
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
11 deletions
+9
-11
console.c
server/console.c
+1
-1
ptrace.c
server/ptrace.c
+1
-1
queue.c
server/queue.c
+1
-1
registry.c
server/registry.c
+2
-2
token.c
server/token.c
+4
-6
No files found.
server/console.c
View file @
a624977f
...
...
@@ -1021,7 +1021,7 @@ static int write_console_output( struct screen_buffer *screen_buffer, data_size_
const
void
*
data
,
enum
char_info_mode
mode
,
int
x
,
int
y
,
int
wrap
)
{
int
i
;
unsigned
int
i
;
char_info_t
*
end
,
*
dest
=
screen_buffer
->
data
+
y
*
screen_buffer
->
width
+
x
;
if
(
y
>=
screen_buffer
->
height
)
return
0
;
...
...
server/ptrace.c
View file @
a624977f
...
...
@@ -288,7 +288,7 @@ static int read_thread_int( struct thread *thread, const int *addr, int *data )
static
int
write_thread_int
(
struct
thread
*
thread
,
int
*
addr
,
int
data
,
unsigned
int
mask
)
{
int
res
;
if
(
mask
!=
~
0
)
if
(
mask
!=
~
0
u
)
{
if
(
read_thread_int
(
thread
,
addr
,
&
res
)
==
-
1
)
return
-
1
;
data
=
(
data
&
mask
)
|
(
res
&
~
mask
);
...
...
server/queue.c
View file @
a624977f
...
...
@@ -1298,7 +1298,7 @@ static int check_hw_message_filter( user_handle_t win, unsigned int msg_code,
/* find a hardware message for the given queue */
static
int
get_hardware_message
(
struct
thread
*
thread
,
int
hw_id
,
user_handle_t
filter_win
,
static
int
get_hardware_message
(
struct
thread
*
thread
,
unsigned
int
hw_id
,
user_handle_t
filter_win
,
unsigned
int
first
,
unsigned
int
last
,
struct
get_message_reply
*
reply
)
{
struct
thread_input
*
input
=
thread
->
queue
->
input
;
...
...
server/registry.c
View file @
a624977f
...
...
@@ -669,8 +669,8 @@ static void enum_key( const struct key *key, int index, int info_class,
{
int
i
;
data_size_t
len
,
namelen
,
classlen
;
in
t
max_subkey
=
0
,
max_class
=
0
;
in
t
max_value
=
0
,
max_data
=
0
;
data_size_
t
max_subkey
=
0
,
max_class
=
0
;
data_size_
t
max_value
=
0
,
max_data
=
0
;
char
*
data
;
if
(
index
!=
-
1
)
/* -1 means use the specified key directly */
...
...
server/token.c
View file @
a624977f
...
...
@@ -419,7 +419,7 @@ static struct token *create_token( unsigned primary, const SID *user,
struct
token
*
token
=
alloc_object
(
&
token_ops
);
if
(
token
)
{
int
i
;
unsigned
int
i
;
list_init
(
&
token
->
privileges
);
list_init
(
&
token
->
groups
);
...
...
@@ -623,8 +623,7 @@ static unsigned int token_adjust_privileges( struct token *token, const LUID_AND
unsigned
int
count
,
LUID_AND_ATTRIBUTES
*
mod_privs
,
unsigned
int
mod_privs_count
)
{
int
i
;
unsigned
int
modified_count
=
0
;
unsigned
int
i
,
modified_count
=
0
;
for
(
i
=
0
;
i
<
count
;
i
++
)
{
...
...
@@ -669,8 +668,7 @@ int token_check_privileges( struct token *token, int all_required,
const
LUID_AND_ATTRIBUTES
*
reqprivs
,
unsigned
int
count
,
LUID_AND_ATTRIBUTES
*
usedprivs
)
{
int
i
;
unsigned
int
enabled_count
=
0
;
unsigned
int
i
,
enabled_count
=
0
;
for
(
i
=
0
;
i
<
count
;
i
++
)
{
...
...
@@ -944,7 +942,7 @@ DECL_HANDLER(adjust_token_privileges)
if
(
req
->
get_modified_state
&&
!
req
->
disable_all
)
{
int
i
;
unsigned
int
i
;
/* count modified privs */
for
(
i
=
0
;
i
<
priv_count
;
i
++
)
{
...
...
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