Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9f157e5b
Commit
9f157e5b
authored
Apr 16, 2012
by
Vincent Povirk
Committed by
Alexandre Julliard
Jun 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Report missing component info strings as zero-length.
parent
ef2b4d74
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
info.c
dlls/windowscodecs/info.c
+6
-0
info.c
dlls/windowscodecs/tests/info.c
+2
-2
No files found.
dlls/windowscodecs/info.c
View file @
9f157e5b
...
...
@@ -59,6 +59,12 @@ static HRESULT ComponentInfo_GetStringValue(HKEY classkey, LPCWSTR value,
ret
=
RegGetValueW
(
classkey
,
NULL
,
value
,
RRF_RT_REG_SZ
|
RRF_NOEXPAND
,
NULL
,
buffer
,
&
cbdata
);
if
(
ret
==
ERROR_FILE_NOT_FOUND
)
{
*
actual_size
=
0
;
return
S_OK
;
}
if
(
ret
==
0
||
ret
==
ERROR_MORE_DATA
)
*
actual_size
=
cbdata
/
sizeof
(
WCHAR
);
...
...
dlls/windowscodecs/tests/info.c
View file @
9f157e5b
...
...
@@ -214,8 +214,8 @@ static void test_pixelformat_info(void)
len
=
0xdeadbeef
;
hr
=
IWICComponentInfo_GetVersion
(
info
,
0
,
NULL
,
&
len
);
todo_wine
ok
(
hr
==
S_OK
,
"GetVersion failed, hr=%x
\n
"
,
hr
);
todo_wine
ok
(
len
==
0
,
"invalid length 0x%x
\n
"
,
len
);
/* version does not apply to pixel formats */
ok
(
hr
==
S_OK
,
"GetVersion failed, hr=%x
\n
"
,
hr
);
ok
(
len
==
0
,
"invalid length 0x%x
\n
"
,
len
);
/* version does not apply to pixel formats */
IWICComponentInfo_Release
(
info
);
}
...
...
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