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
c334d250
Commit
c334d250
authored
Jan 26, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adsldp/tests: Get rid of strchrW().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9a9a1821
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
sysinfo.c
dlls/adsldp/tests/sysinfo.c
+2
-8
No files found.
dlls/adsldp/tests/sysinfo.c
View file @
c334d250
...
...
@@ -33,12 +33,6 @@
#include "wine/test.h"
static
WCHAR
*
strchrW
(
const
WCHAR
*
str
,
WCHAR
ch
)
{
do
{
if
(
*
str
==
ch
)
return
(
WCHAR
*
)(
ULONG_PTR
)
str
;
}
while
(
*
str
++
);
return
NULL
;
}
static
void
test_ComputerName
(
void
)
{
static
const
WCHAR
cnW
[]
=
{
'C'
,
'N'
,
'='
};
...
...
@@ -70,7 +64,7 @@ static void test_ComputerName(void)
ok
(
size
==
lstrlenW
(
buf
)
+
1
,
"got %u, expected %u
\n
"
,
size
,
lstrlenW
(
buf
)
+
1
);
ok
(
!
memcmp
(
buf
,
cnW
,
sizeof
(
cnW
)),
"got %s
\n
"
,
wine_dbgstr_w
(
buf
));
ok
(
!
memcmp
(
buf
+
3
,
name
,
name_size
),
"got %s (name_size = %u)
\n
"
,
wine_dbgstr_w
(
buf
),
name_size
);
p
=
strchrW
(
buf
,
','
);
p
=
wcschr
(
buf
,
','
);
ok
(
p
!=
NULL
,
"delimiter was not found
\n
"
);
ok
(
p
&&
!
memcmp
(
p
+
1
,
ComputersW
,
sizeof
(
ComputersW
)),
"got %s
\n
"
,
p
?
wine_dbgstr_w
(
p
+
1
)
:
wine_dbgstr_w
(
buf
));
}
...
...
@@ -120,7 +114,7 @@ static void test_UserName(void)
ok
(
size
==
lstrlenW
(
buf
),
"got %u, expected %u
\n
"
,
size
,
lstrlenW
(
buf
));
ok
(
!
memcmp
(
buf
,
cnW
,
sizeof
(
cnW
)),
"got %s
\n
"
,
wine_dbgstr_w
(
buf
));
ok
(
!
memcmp
(
buf
+
3
,
name
,
name_size
),
"got %s (name_size = %u)
\n
"
,
wine_dbgstr_w
(
buf
),
name_size
);
p
=
strchrW
(
buf
,
','
);
p
=
wcschr
(
buf
,
','
);
ok
(
p
!=
NULL
,
"delimiter was not found
\n
"
);
ok
(
p
&&
!
memcmp
(
p
+
1
,
UsersW
,
sizeof
(
UsersW
)),
"got %s
\n
"
,
p
?
wine_dbgstr_w
(
p
+
1
)
:
wine_dbgstr_w
(
buf
));
}
...
...
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