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
16d785d4
Commit
16d785d4
authored
Jul 15, 2022
by
Jinoh Kang
Committed by
Alexandre Julliard
Jul 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Return stub bitmap in IShellItemImageFactory::GetImage.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=52673
parent
6e51e083
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
shellitem.c
dlls/shell32/shellitem.c
+15
-2
shlfolder.c
dlls/shell32/tests/shlfolder.c
+0
-1
No files found.
dlls/shell32/shellitem.c
View file @
16d785d4
...
...
@@ -569,13 +569,26 @@ static HRESULT WINAPI ShellItem_IShellItemImageFactory_GetImage(IShellItemImageF
SIZE
size
,
SIIGBF
flags
,
HBITMAP
*
phbm
)
{
ShellItem
*
This
=
impl_from_IShellItemImageFactory
(
iface
);
static
const
BITMAPINFOHEADER
dummy_bmi_header
=
{
.
biSize
=
sizeof
(
dummy_bmi_header
),
.
biWidth
=
1
,
.
biHeight
=
1
,
.
biPlanes
=
1
,
.
biBitCount
=
32
,
.
biCompression
=
BI_RGB
};
static
int
once
;
if
(
!
once
++
)
FIXME
(
"%p ({%lu, %lu} %d %p): stub
\n
"
,
This
,
size
.
cx
,
size
.
cy
,
flags
,
phbm
);
*
phbm
=
NULL
;
return
E_NOTIMPL
;
if
(
!
(
*
phbm
=
CreateDIBSection
(
NULL
,
(
const
BITMAPINFO
*
)
&
dummy_bmi_header
,
DIB_RGB_COLORS
,
NULL
,
NULL
,
0
)))
{
return
E_OUTOFMEMORY
;
}
return
S_OK
;
}
static
const
IShellItemImageFactoryVtbl
ShellItem_IShellItemImageFactory_Vtbl
=
{
...
...
dlls/shell32/tests/shlfolder.c
View file @
16d785d4
...
...
@@ -4487,7 +4487,6 @@ static void test_IShellItemImageFactory(void)
ret
=
IShellItemImageFactory_GetImage
(
siif
,
size
,
SIIGBF_BIGGERSIZEOK
,
&
hbm
);
IShellItemImageFactory_Release
(
siif
);
todo_wine
ok
(
ret
==
S_OK
,
"GetImage returned %lx
\n
"
,
ret
);
ok
(
FAILED
(
ret
)
==
!
hbm
,
"result = %lx but bitmap = %p
\n
"
,
ret
,
hbm
);
...
...
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