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
9648b824
Commit
9648b824
authored
Jul 28, 2006
by
Robert Shearman
Committed by
Alexandre Julliard
Jul 28, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Implement setting of the hPal property in IPictureDisp::Invoke.
Remove some validation code that is already handled by a more generic case at the end of the function.
parent
e0e7d96e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
olepicture.c
dlls/oleaut32/olepicture.c
+16
-5
No files found.
dlls/oleaut32/olepicture.c
View file @
9648b824
...
...
@@ -2084,11 +2084,6 @@ static HRESULT WINAPI OLEPictureImpl_Invoke(
return
DISP_E_BADPARAMCOUNT
;
}
}
else
{
ERR
(
"one of DISPATCH_PROPERTYGET or DISPATCH_PROPERTYPUT must be specified
\n
"
);
return
DISP_E_MEMBERNOTFOUND
;
}
switch
(
dispIdMember
)
{
...
...
@@ -2107,6 +2102,22 @@ static HRESULT WINAPI OLEPictureImpl_Invoke(
V_VT
(
pVarResult
)
=
VT_I4
;
return
IPicture_get_hPal
((
IPicture
*
)
&
This
->
lpVtbl
,
&
V_UINT
(
pVarResult
));
}
else
if
(
wFlags
&
DISPATCH_PROPERTYPUT
)
{
VARIANTARG
vararg
;
HRESULT
hr
;
TRACE
(
"DISPID_PICT_HPAL
\n
"
);
VariantInit
(
&
vararg
);
hr
=
VariantChangeTypeEx
(
&
vararg
,
&
pDispParams
->
rgvarg
[
0
],
lcid
,
0
,
VT_I4
);
if
(
FAILED
(
hr
))
return
hr
;
hr
=
IPicture_set_hPal
((
IPicture
*
)
&
This
->
lpVtbl
,
V_I4
(
&
vararg
));
VariantClear
(
&
vararg
);
return
hr
;
}
break
;
case
DISPID_PICT_TYPE
:
if
(
wFlags
&
DISPATCH_PROPERTYGET
)
...
...
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