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
5fe2fc20
Commit
5fe2fc20
authored
Jul 16, 2010
by
Marko Nikolic
Committed by
Alexandre Julliard
Jul 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Removed sign comparison warning in service.c.
parent
7fe8c720
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
service.c
dlls/advapi32/tests/service.c
+5
-5
No files found.
dlls/advapi32/tests/service.c
View file @
5fe2fc20
...
@@ -601,7 +601,7 @@ static void test_get_displayname(void)
...
@@ -601,7 +601,7 @@ static void test_get_displayname(void)
ok
(
ret
,
"Expected success, got error %u
\n
"
,
GetLastError
());
ok
(
ret
,
"Expected success, got error %u
\n
"
,
GetLastError
());
/* Test that shows that if the buffersize is enough, it's not changed */
/* Test that shows that if the buffersize is enough, it's not changed */
ok
(
displaysize
==
tempsize
*
2
,
"Expected no change for the needed buffer size
\n
"
);
ok
(
displaysize
==
tempsize
*
2
,
"Expected no change for the needed buffer size
\n
"
);
ok
(
l
strlen
(
displayname
)
==
tempsize
/
2
,
ok
(
strlen
(
displayname
)
==
tempsize
/
2
,
"Expected the buffer to be twice the length of the string
\n
"
)
;
"Expected the buffer to be twice the length of the string
\n
"
)
;
/* Do the buffer(size) tests also for GetServiceDisplayNameW */
/* Do the buffer(size) tests also for GetServiceDisplayNameW */
...
@@ -671,7 +671,7 @@ static void test_get_displayname(void)
...
@@ -671,7 +671,7 @@ static void test_get_displayname(void)
displaysize
=
-
1
;
displaysize
=
-
1
;
ret
=
GetServiceDisplayNameA
(
scm_handle
,
servicename
,
NULL
,
&
displaysize
);
ret
=
GetServiceDisplayNameA
(
scm_handle
,
servicename
,
NULL
,
&
displaysize
);
ok
(
!
ret
,
"Expected failure
\n
"
);
ok
(
!
ret
,
"Expected failure
\n
"
);
ok
(
displaysize
==
l
strlen
(
servicename
)
*
2
,
ok
(
displaysize
==
strlen
(
servicename
)
*
2
,
"Expected the displaysize to be twice the size of the servicename
\n
"
);
"Expected the displaysize to be twice the size of the servicename
\n
"
);
ok
(
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
ok
(
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"Expected ERROR_INSUFFICIENT_BUFFER, got %d
\n
"
,
GetLastError
());
"Expected ERROR_INSUFFICIENT_BUFFER, got %d
\n
"
,
GetLastError
());
...
@@ -856,7 +856,7 @@ static void test_get_servicekeyname(void)
...
@@ -856,7 +856,7 @@ static void test_get_servicekeyname(void)
ok
(
ret
,
"Expected success, got error %u
\n
"
,
GetLastError
());
ok
(
ret
,
"Expected success, got error %u
\n
"
,
GetLastError
());
if
(
ret
)
if
(
ret
)
{
{
ok
(
l
strlen
(
servicename
)
==
tempsize
/
2
,
ok
(
strlen
(
servicename
)
==
tempsize
/
2
,
"Expected the buffer to be twice the length of the string
\n
"
)
;
"Expected the buffer to be twice the length of the string
\n
"
)
;
ok
(
!
lstrcmpi
(
servicename
,
spooler
),
"Expected %s, got %s
\n
"
,
spooler
,
servicename
);
ok
(
!
lstrcmpi
(
servicename
,
spooler
),
"Expected %s, got %s
\n
"
,
spooler
,
servicename
);
ok
(
servicesize
==
(
tempsize
*
2
),
ok
(
servicesize
==
(
tempsize
*
2
),
...
@@ -870,7 +870,7 @@ static void test_get_servicekeyname(void)
...
@@ -870,7 +870,7 @@ static void test_get_servicekeyname(void)
ok
(
ret
,
"Expected success, got error %u
\n
"
,
GetLastError
());
ok
(
ret
,
"Expected success, got error %u
\n
"
,
GetLastError
());
if
(
ret
)
if
(
ret
)
{
{
ok
(
l
strlen
(
servicename
)
==
tempsize
/
2
,
ok
(
strlen
(
servicename
)
==
tempsize
/
2
,
"Expected the buffer to be twice the length of the string
\n
"
)
;
"Expected the buffer to be twice the length of the string
\n
"
)
;
ok
(
servicesize
==
lstrlenW
(
servicenameW
),
ok
(
servicesize
==
lstrlenW
(
servicenameW
),
"Expected servicesize not to change if buffer not insufficient
\n
"
)
;
"Expected servicesize not to change if buffer not insufficient
\n
"
)
;
...
@@ -1039,7 +1039,7 @@ static void test_enum_svc(void)
...
@@ -1039,7 +1039,7 @@ static void test_enum_svc(void)
DWORD
servicecountactive
,
servicecountinactive
;
DWORD
servicecountactive
,
servicecountinactive
;
ENUM_SERVICE_STATUS
*
services
;
ENUM_SERVICE_STATUS
*
services
;
ENUM_SERVICE_STATUS_PROCESS
*
exservices
;
ENUM_SERVICE_STATUS_PROCESS
*
exservices
;
INT
i
;
U
INT
i
;
/* All NULL or wrong */
/* All NULL or wrong */
SetLastError
(
0xdeadbeef
);
SetLastError
(
0xdeadbeef
);
...
...
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