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
76925b06
Commit
76925b06
authored
Jan 06, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 06, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Check pointer in IPicture_get_Attributes.
parent
5b88f0d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
olepicture.c
dlls/oleaut32/olepicture.c
+4
-0
olepicture.c
dlls/oleaut32/tests/olepicture.c
+3
-0
No files found.
dlls/oleaut32/olepicture.c
View file @
76925b06
...
@@ -842,6 +842,10 @@ static HRESULT WINAPI OLEPictureImpl_get_Attributes(IPicture *iface,
...
@@ -842,6 +842,10 @@ static HRESULT WINAPI OLEPictureImpl_get_Attributes(IPicture *iface,
{
{
OLEPictureImpl
*
This
=
(
OLEPictureImpl
*
)
iface
;
OLEPictureImpl
*
This
=
(
OLEPictureImpl
*
)
iface
;
TRACE
(
"(%p)->(%p).
\n
"
,
This
,
pdwAttr
);
TRACE
(
"(%p)->(%p).
\n
"
,
This
,
pdwAttr
);
if
(
!
pdwAttr
)
return
E_POINTER
;
*
pdwAttr
=
0
;
*
pdwAttr
=
0
;
switch
(
This
->
desc
.
picType
)
{
switch
(
This
->
desc
.
picType
)
{
case
PICTYPE_UNINITIALIZED
:
case
PICTYPE_UNINITIALIZED
:
...
...
dlls/oleaut32/tests/olepicture.c
View file @
76925b06
...
@@ -663,6 +663,9 @@ static void test_get_Attributes(void)
...
@@ -663,6 +663,9 @@ static void test_get_Attributes(void)
ok
(
hres
==
S_OK
,
"IPicture_get_Type does not return S_OK, but 0x%08x
\n
"
,
hres
);
ok
(
hres
==
S_OK
,
"IPicture_get_Type does not return S_OK, but 0x%08x
\n
"
,
hres
);
ok
(
type
==
PICTYPE_UNINITIALIZED
,
"Expected type = PICTYPE_UNINITIALIZED, got = %d
\n
"
,
type
);
ok
(
type
==
PICTYPE_UNINITIALIZED
,
"Expected type = PICTYPE_UNINITIALIZED, got = %d
\n
"
,
type
);
hres
=
IPicture_get_Attributes
(
pic
,
NULL
);
ole_expect
(
hres
,
E_POINTER
);
attr
=
0xdeadbeef
;
attr
=
0xdeadbeef
;
hres
=
IPicture_get_Attributes
(
pic
,
&
attr
);
hres
=
IPicture_get_Attributes
(
pic
,
&
attr
);
ole_expect
(
hres
,
S_OK
);
ole_expect
(
hres
,
S_OK
);
...
...
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