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
70d400ad
Commit
70d400ad
authored
Aug 09, 2004
by
Hans Leidekker
Committed by
Alexandre Julliard
Aug 09, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix signed/unsigned comparison warnings.
parent
bd97e859
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
18 deletions
+18
-18
comm.c
dlls/kernel/tests/comm.c
+1
-1
mailslot.c
dlls/kernel/tests/mailslot.c
+2
-2
process.c
dlls/kernel/tests/process.c
+10
-10
thread.c
dlls/kernel/tests/thread.c
+5
-5
No files found.
dlls/kernel/tests/comm.c
View file @
70d400ad
...
...
@@ -588,7 +588,7 @@ static void test_BuildCommDCB(void)
{
char
port_name
[]
=
"COMx"
;
char
port
=
0
;
int
i
;
unsigned
int
i
;
char
*
ptr
;
/* Some of these tests require a valid COM port. This loop will try to find
...
...
dlls/kernel/tests/mailslot.c
View file @
70d400ad
...
...
@@ -81,13 +81,13 @@ static int mailslot_test()
dwMax
=
dwNext
=
dwMsgCount
=
dwTimeout
=
0
;
ok
(
GetMailslotInfo
(
hSlot
,
&
dwMax
,
&
dwNext
,
&
dwMsgCount
,
&
dwTimeout
),
"getmailslotinfo failed
\n
"
);
ok
(
dwMax
==
-
1
,
"dwMax incorrect
\n
"
);
ok
(
dwMax
==
~
0UL
,
"dwMax incorrect
\n
"
);
ok
(
dwNext
==
MAILSLOT_NO_MESSAGE
,
"dwNext incorrect
\n
"
);
}
ok
(
dwMsgCount
==
0
,
"dwMsgCount incorrect
\n
"
);
todo_wine
{
ok
(
dwTimeout
==
-
1
,
"dwTimeout incorrect
\n
"
);
ok
(
dwTimeout
==
~
0UL
,
"dwTimeout incorrect
\n
"
);
ok
(
GetMailslotInfo
(
hSlot
,
NULL
,
NULL
,
NULL
,
NULL
),
"getmailslotinfo failed
\n
"
);
ok
(
CloseHandle
(
hSlot
),
"failed to close mailslot
\n
"
);
...
...
dlls/kernel/tests/process.c
View file @
70d400ad
...
...
@@ -1082,17 +1082,17 @@ static void test_Console(void)
okChildInt
(
"StartupInfoA"
,
"hStdInput"
,
(
DWORD
)
startup
.
hStdInput
);
okChildInt
(
"StartupInfoA"
,
"hStdOutput"
,
(
DWORD
)
startup
.
hStdOutput
);
okChildInt
(
"StartupInfoA"
,
"hStdError"
,
(
DWORD
)
startup
.
hStdError
);
okChildInt
(
"Console"
,
"SizeX"
,
sbi
.
dwSize
.
X
);
okChildInt
(
"Console"
,
"SizeY"
,
sbi
.
dwSize
.
Y
);
okChildInt
(
"Console"
,
"CursorX"
,
sbi
.
dwCursorPosition
.
X
);
okChildInt
(
"Console"
,
"CursorY"
,
sbi
.
dwCursorPosition
.
Y
);
okChildInt
(
"Console"
,
"SizeX"
,
(
DWORD
)
sbi
.
dwSize
.
X
);
okChildInt
(
"Console"
,
"SizeY"
,
(
DWORD
)
sbi
.
dwSize
.
Y
);
okChildInt
(
"Console"
,
"CursorX"
,
(
DWORD
)
sbi
.
dwCursorPosition
.
X
);
okChildInt
(
"Console"
,
"CursorY"
,
(
DWORD
)
sbi
.
dwCursorPosition
.
Y
);
okChildInt
(
"Console"
,
"Attributes"
,
sbi
.
wAttributes
);
okChildInt
(
"Console"
,
"winLeft"
,
sbi
.
srWindow
.
Left
);
okChildInt
(
"Console"
,
"winTop"
,
sbi
.
srWindow
.
Top
);
okChildInt
(
"Console"
,
"winRight"
,
sbi
.
srWindow
.
Right
);
okChildInt
(
"Console"
,
"winBottom"
,
sbi
.
srWindow
.
Bottom
);
okChildInt
(
"Console"
,
"maxWinWidth"
,
sbi
.
dwMaximumWindowSize
.
X
);
okChildInt
(
"Console"
,
"maxWinHeight"
,
sbi
.
dwMaximumWindowSize
.
Y
);
okChildInt
(
"Console"
,
"winLeft"
,
(
DWORD
)
sbi
.
srWindow
.
Left
);
okChildInt
(
"Console"
,
"winTop"
,
(
DWORD
)
sbi
.
srWindow
.
Top
);
okChildInt
(
"Console"
,
"winRight"
,
(
DWORD
)
sbi
.
srWindow
.
Right
);
okChildInt
(
"Console"
,
"winBottom"
,
(
DWORD
)
sbi
.
srWindow
.
Bottom
);
okChildInt
(
"Console"
,
"maxWinWidth"
,
(
DWORD
)
sbi
.
dwMaximumWindowSize
.
X
);
okChildInt
(
"Console"
,
"maxWinHeight"
,
(
DWORD
)
sbi
.
dwMaximumWindowSize
.
Y
);
okChildInt
(
"Console"
,
"InputCP"
,
cpIn
);
okChildInt
(
"Console"
,
"OutputCP"
,
cpOut
);
okChildInt
(
"Console"
,
"InputMode"
,
modeIn
);
...
...
dlls/kernel/tests/thread.c
View file @
70d400ad
...
...
@@ -246,8 +246,8 @@ VOID test_CreateThread_suspended()
VOID
test_SuspendThread
()
{
HANDLE
thread
,
access_thread
;
DWORD
threadId
,
exitCode
;
int
i
,
error
;
DWORD
threadId
,
exitCode
,
error
;
int
i
;
thread
=
CreateThread
(
NULL
,
0
,(
LPTHREAD_START_ROUTINE
)
threadFunc3
,
NULL
,
0
,
&
threadId
);
...
...
@@ -273,9 +273,9 @@ VOID test_SuspendThread()
0
,
threadId
);
ok
(
access_thread
!=
NULL
,
"OpenThread returned an invalid handle
\n
"
);
if
(
access_thread
!=
NULL
)
{
ok
(
SuspendThread
(
access_thread
)
==
-
1
,
ok
(
SuspendThread
(
access_thread
)
==
~
0UL
,
"SuspendThread did not obey access restrictions
\n
"
);
ok
(
ResumeThread
(
access_thread
)
==
-
1
,
ok
(
ResumeThread
(
access_thread
)
==
~
0UL
,
"ResumeThread did not obey access restrictions
\n
"
);
ok
(
CloseHandle
(
access_thread
)
!=
0
,
"CloseHandle Failed
\n
"
);
}
...
...
@@ -292,7 +292,7 @@ VOID test_SuspendThread()
}
/* Trying to suspend a terminated thread should fail */
error
=
SuspendThread
(
thread
);
ok
(
error
==
0xffffffff
,
"wrong return code: %
d
\n
"
,
error
);
ok
(
error
==
~
0UL
,
"wrong return code: %l
d
\n
"
,
error
);
ok
(
GetLastError
()
==
ERROR_ACCESS_DENIED
||
GetLastError
()
==
ERROR_NO_MORE_ITEMS
,
"unexpected error code: %ld
\n
"
,
GetLastError
());
ok
(
CloseHandle
(
thread
)
!=
0
,
"CloseHandle Failed
\n
"
);
...
...
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