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
1c9bf32e
Commit
1c9bf32e
authored
May 15, 2012
by
Francois Gouget
Committed by
Alexandre Julliard
May 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32/tests: Add a trailing '\n' to ok() calls.
parent
c6033397
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
winstation.c
dlls/user32/tests/winstation.c
+8
-8
No files found.
dlls/user32/tests/winstation.c
View file @
1c9bf32e
...
...
@@ -395,7 +395,7 @@ static void test_getuserobjectinformation(void)
size
=
0xdeadbeef
;
ret
=
GetUserObjectInformationA
(
desk
,
UOI_NAME
,
NULL
,
0
,
&
size
);
ok
(
!
ret
,
"GetUserObjectInformationA returned %x"
,
ret
);
ok
(
!
ret
,
"GetUserObjectInformationA returned %x
\n
"
,
ret
);
ok
(
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"LastError is set to %08x
\n
"
,
GetLastError
());
ok
(
size
==
22
,
"size is set to %d
\n
"
,
size
);
/* Windows returns Unicode length (11*2) */
...
...
@@ -404,7 +404,7 @@ static void test_getuserobjectinformation(void)
size
=
0xdeadbeef
;
ret
=
GetUserObjectInformationA
(
desk
,
UOI_NAME
,
buffer
,
sizeof
(
buffer
),
&
size
);
ok
(
ret
,
"GetUserObjectInformationA returned %x"
,
ret
);
ok
(
ret
,
"GetUserObjectInformationA returned %x
\n
"
,
ret
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"LastError is set to %08x
\n
"
,
GetLastError
());
ok
(
strcmp
(
buffer
,
"foobarTest"
)
==
0
,
"Buffer is set to '%s'
\n
"
,
buffer
);
...
...
@@ -415,7 +415,7 @@ static void test_getuserobjectinformation(void)
size
=
0xdeadbeef
;
ret
=
GetUserObjectInformationW
(
desk
,
UOI_NAME
,
NULL
,
0
,
&
size
);
ok
(
!
ret
,
"GetUserObjectInformationW returned %x"
,
ret
);
ok
(
!
ret
,
"GetUserObjectInformationW returned %x
\n
"
,
ret
);
ok
(
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"LastError is set to %08x
\n
"
,
GetLastError
());
ok
(
size
==
22
,
"size is set to %d
\n
"
,
size
);
/* 22 bytes in 'foobarTest\0' in Unicode */
...
...
@@ -424,7 +424,7 @@ static void test_getuserobjectinformation(void)
size
=
0xdeadbeef
;
ret
=
GetUserObjectInformationW
(
desk
,
UOI_NAME
,
bufferW
,
sizeof
(
bufferW
),
&
size
);
ok
(
ret
,
"GetUserObjectInformationW returned %x"
,
ret
);
ok
(
ret
,
"GetUserObjectInformationW returned %x
\n
"
,
ret
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"LastError is set to %08x
\n
"
,
GetLastError
());
ok
(
lstrcmpW
(
bufferW
,
foobarTestW
)
==
0
,
"Buffer is not set to 'foobarTest'
\n
"
);
...
...
@@ -437,7 +437,7 @@ static void test_getuserobjectinformation(void)
size
=
0xdeadbeef
;
ret
=
GetUserObjectInformationA
(
desk
,
UOI_TYPE
,
NULL
,
0
,
&
size
);
ok
(
!
ret
,
"GetUserObjectInformationA returned %x"
,
ret
);
ok
(
!
ret
,
"GetUserObjectInformationA returned %x
\n
"
,
ret
);
ok
(
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"LastError is set to %08x
\n
"
,
GetLastError
());
ok
(
size
==
16
,
"size is set to %d
\n
"
,
size
);
/* Windows returns Unicode length (8*2) */
...
...
@@ -446,7 +446,7 @@ static void test_getuserobjectinformation(void)
size
=
0xdeadbeef
;
ret
=
GetUserObjectInformationA
(
desk
,
UOI_TYPE
,
buffer
,
sizeof
(
buffer
),
&
size
);
ok
(
ret
,
"GetUserObjectInformationA returned %x"
,
ret
);
ok
(
ret
,
"GetUserObjectInformationA returned %x
\n
"
,
ret
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"LastError is set to %08x
\n
"
,
GetLastError
());
ok
(
strcmp
(
buffer
,
"Desktop"
)
==
0
,
"Buffer is set to '%s'
\n
"
,
buffer
);
...
...
@@ -457,7 +457,7 @@ static void test_getuserobjectinformation(void)
SetLastError
(
0xdeadbeef
);
ret
=
GetUserObjectInformationW
(
desk
,
UOI_TYPE
,
NULL
,
0
,
&
size
);
ok
(
!
ret
,
"GetUserObjectInformationW returned %x"
,
ret
);
ok
(
!
ret
,
"GetUserObjectInformationW returned %x
\n
"
,
ret
);
ok
(
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"LastError is set to %08x
\n
"
,
GetLastError
());
ok
(
size
==
16
,
"size is set to %d
\n
"
,
size
);
/* 16 bytes in 'Desktop\0' in Unicode */
...
...
@@ -466,7 +466,7 @@ static void test_getuserobjectinformation(void)
size
=
0xdeadbeef
;
ret
=
GetUserObjectInformationW
(
desk
,
UOI_TYPE
,
bufferW
,
sizeof
(
bufferW
),
&
size
);
ok
(
ret
,
"GetUserObjectInformationW returned %x"
,
ret
);
ok
(
ret
,
"GetUserObjectInformationW returned %x
\n
"
,
ret
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"LastError is set to %08x
\n
"
,
GetLastError
());
ok
(
lstrcmpW
(
bufferW
,
DesktopW
)
==
0
,
"Buffer is not set to 'Desktop'
\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