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
b91f4a3d
Commit
b91f4a3d
authored
Jan 07, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Check pointer in IPicture::get_Type.
parent
a22ca1c2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
0 deletions
+18
-0
olepicture.c
dlls/oleaut32/olepicture.c
+4
-0
olepicture.c
dlls/oleaut32/tests/olepicture.c
+14
-0
No files found.
dlls/oleaut32/olepicture.c
View file @
b91f4a3d
...
...
@@ -595,6 +595,10 @@ static HRESULT WINAPI OLEPictureImpl_get_Type(IPicture *iface,
{
OLEPictureImpl
*
This
=
(
OLEPictureImpl
*
)
iface
;
TRACE
(
"(%p)->(%p): type is %d
\n
"
,
This
,
ptype
,
This
->
desc
.
picType
);
if
(
!
ptype
)
return
E_POINTER
;
*
ptype
=
This
->
desc
.
picType
;
return
S_OK
;
}
...
...
dlls/oleaut32/tests/olepicture.c
View file @
b91f4a3d
...
...
@@ -687,6 +687,19 @@ static void test_get_Handle(void)
IPicture_Release
(
pic
);
}
static
void
test_get_Type
(
void
)
{
IPicture
*
pic
;
HRESULT
hres
;
OleCreatePictureIndirect
(
NULL
,
&
IID_IPicture
,
TRUE
,
(
VOID
**
)
&
pic
);
hres
=
IPicture_get_Type
(
pic
,
NULL
);
ole_expect
(
hres
,
E_POINTER
);
IPicture_Release
(
pic
);
}
START_TEST
(
olepicture
)
{
hOleaut32
=
GetModuleHandleA
(
"oleaut32.dll"
);
...
...
@@ -716,6 +729,7 @@ START_TEST(olepicture)
test_Render
();
test_get_Attributes
();
test_get_Handle
();
test_get_Type
();
}
...
...
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