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
de092c6b
Commit
de092c6b
authored
Nov 17, 2014
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 17, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscms/tests: Simplify the check for an empty string (PVS-Studio).
parent
8b769332
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
profile.c
dlls/mscms/tests/profile.c
+2
-2
No files found.
dlls/mscms/tests/profile.c
View file @
de092c6b
...
...
@@ -1364,10 +1364,10 @@ START_TEST(profile)
/* See if we can find the standard color profile */
ret
=
GetSystemDirectoryA
(
profilefile1
,
sizeof
(
profilefile1
)
);
ok
(
ret
>
0
,
"GetSystemDirectoryA() returns %d, LastError = %d
\n
"
,
ret
,
GetLastError
());
ok
(
lstrlenA
(
profilefile1
)
>
0
&&
lstrlenA
(
profilefile1
)
<
MAX_PATH
,
ok
(
profilefile1
[
0
]
&&
lstrlenA
(
profilefile1
)
<
MAX_PATH
,
"Expected length between 0 and MAX_PATH, got %d
\n
"
,
lstrlenA
(
profilefile1
));
MultiByteToWideChar
(
CP_ACP
,
0
,
profilefile1
,
-
1
,
profilefile1W
,
MAX_PATH
);
ok
(
lstrlenW
(
profilefile1W
)
>
0
&&
lstrlenW
(
profilefile1W
)
<
MAX_PATH
,
ok
(
profilefile1W
[
0
]
&&
lstrlenW
(
profilefile1W
)
<
MAX_PATH
,
"Expected length between 0 and MAX_PATH, got %d
\n
"
,
lstrlenW
(
profilefile1W
));
lstrcpyA
(
profilefile2
,
profilefile1
);
lstrcpyW
(
profilefile2W
,
profilefile1W
);
...
...
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