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
97e2c24c
Commit
97e2c24c
authored
Nov 26, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Nov 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Add support for saving an empty picture.
parent
6c53c4ee
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
olepicture.c
dlls/oleaut32/olepicture.c
+6
-0
olepicture.c
dlls/oleaut32/tests/olepicture.c
+0
-2
No files found.
dlls/oleaut32/olepicture.c
View file @
97e2c24c
...
@@ -1757,6 +1757,12 @@ static HRESULT WINAPI OLEPictureImpl_Save(
...
@@ -1757,6 +1757,12 @@ static HRESULT WINAPI OLEPictureImpl_Save(
TRACE
(
"%p %p %d
\n
"
,
This
,
pStm
,
fClearDirty
);
TRACE
(
"%p %p %d
\n
"
,
This
,
pStm
,
fClearDirty
);
switch
(
This
->
desc
.
picType
)
{
switch
(
This
->
desc
.
picType
)
{
case
PICTYPE_NONE
:
header
[
0
]
=
0x0000746c
;
header
[
1
]
=
0
;
hResult
=
IStream_Write
(
pStm
,
header
,
2
*
sizeof
(
DWORD
),
&
dummy
);
break
;
case
PICTYPE_ICON
:
case
PICTYPE_ICON
:
if
(
This
->
bIsDirty
||
!
This
->
data
)
{
if
(
This
->
bIsDirty
||
!
This
->
data
)
{
if
(
!
serializeIcon
(
This
->
desc
.
u
.
icon
.
hicon
,
&
pIconData
,
&
iDataSize
))
{
if
(
!
serializeIcon
(
This
->
desc
.
u
.
icon
.
hicon
,
&
pIconData
,
&
iDataSize
))
{
...
...
dlls/oleaut32/tests/olepicture.c
View file @
97e2c24c
...
@@ -1095,11 +1095,9 @@ static void test_load_save_empty_picture(void)
...
@@ -1095,11 +1095,9 @@ static void test_load_save_empty_picture(void)
ok
(
hr
==
S_OK
,
"QueryInterface error %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"QueryInterface error %#x
\n
"
,
hr
);
hr
=
IPersistStream_Save
(
src_stream
,
dst_stream
,
TRUE
);
hr
=
IPersistStream_Save
(
src_stream
,
dst_stream
,
TRUE
);
todo_wine
ok
(
hr
==
S_OK
,
"Save error %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Save error %#x
\n
"
,
hr
);
mem
=
GlobalLock
(
hmem
);
mem
=
GlobalLock
(
hmem
);
todo_wine
ok
(
!
memcmp
(
mem
,
"lt
\0\0
"
,
4
),
"got wrong stream header %04x
\n
"
,
mem
[
0
]);
ok
(
!
memcmp
(
mem
,
"lt
\0\0
"
,
4
),
"got wrong stream header %04x
\n
"
,
mem
[
0
]);
ok
(
mem
[
1
]
==
0
,
"expected stream size 0, got %u
\n
"
,
mem
[
1
]);
ok
(
mem
[
1
]
==
0
,
"expected stream size 0, got %u
\n
"
,
mem
[
1
]);
GlobalUnlock
(
hmem
);
GlobalUnlock
(
hmem
);
...
...
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