Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
7c05c624
Commit
7c05c624
authored
Oct 21, 2009
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscms/tests: Avoid accessing uninitialized memory.
Found by valgrind.
parent
f951deec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
profile.c
dlls/mscms/tests/profile.c
+5
-2
No files found.
dlls/mscms/tests/profile.c
View file @
7c05c624
...
...
@@ -593,10 +593,13 @@ static void test_GetStandardColorSpaceProfileW(void)
SetLastError
(
0xfaceabee
);
/* maybe 2nd param. */
ret
=
pGetStandardColorSpaceProfileW
(
NULL
,
0
,
newprofile
,
&
sizeP
);
WideCharToMultiByte
(
CP_ACP
,
0
,
newprofile
,
-
1
,
newprofileA
,
sizeof
(
newprofileA
),
NULL
,
NULL
);
if
(
!
ret
)
ok
(
GetLastError
()
==
ERROR_FILE_NOT_FOUND
,
"GetStandardColorSpaceProfileW() returns %d (GLE=%d)
\n
"
,
ret
,
GetLastError
()
);
else
ok
(
!
lstrcmpiA
(
newprofileA
,
empty
)
&&
GetLastError
()
==
0xfaceabee
,
else
{
WideCharToMultiByte
(
CP_ACP
,
0
,
newprofile
,
-
1
,
newprofileA
,
sizeof
(
newprofileA
),
NULL
,
NULL
);
ok
(
!
lstrcmpiA
(
newprofileA
,
empty
)
&&
GetLastError
()
==
0xfaceabee
,
"GetStandardColorSpaceProfileW() returns %d (GLE=%d)
\n
"
,
ret
,
GetLastError
()
);
}
/* Functional checks */
...
...
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