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
a22ca1c2
Commit
a22ca1c2
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_Handle.
parent
65b3393d
Show 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 @
a22ca1c2
...
@@ -519,6 +519,10 @@ static HRESULT WINAPI OLEPictureImpl_get_Handle(IPicture *iface,
...
@@ -519,6 +519,10 @@ static HRESULT WINAPI OLEPictureImpl_get_Handle(IPicture *iface,
{
{
OLEPictureImpl
*
This
=
(
OLEPictureImpl
*
)
iface
;
OLEPictureImpl
*
This
=
(
OLEPictureImpl
*
)
iface
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
phandle
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
phandle
);
if
(
!
phandle
)
return
E_POINTER
;
switch
(
This
->
desc
.
picType
)
{
switch
(
This
->
desc
.
picType
)
{
case
PICTYPE_NONE
:
case
PICTYPE_NONE
:
case
PICTYPE_UNINITIALIZED
:
case
PICTYPE_UNINITIALIZED
:
...
...
dlls/oleaut32/tests/olepicture.c
View file @
a22ca1c2
...
@@ -674,6 +674,19 @@ static void test_get_Attributes(void)
...
@@ -674,6 +674,19 @@ static void test_get_Attributes(void)
IPicture_Release
(
pic
);
IPicture_Release
(
pic
);
}
}
static
void
test_get_Handle
(
void
)
{
IPicture
*
pic
;
HRESULT
hres
;
OleCreatePictureIndirect
(
NULL
,
&
IID_IPicture
,
TRUE
,
(
VOID
**
)
&
pic
);
hres
=
IPicture_get_Handle
(
pic
,
NULL
);
ole_expect
(
hres
,
E_POINTER
);
IPicture_Release
(
pic
);
}
START_TEST
(
olepicture
)
START_TEST
(
olepicture
)
{
{
hOleaut32
=
GetModuleHandleA
(
"oleaut32.dll"
);
hOleaut32
=
GetModuleHandleA
(
"oleaut32.dll"
);
...
@@ -702,6 +715,7 @@ START_TEST(olepicture)
...
@@ -702,6 +715,7 @@ START_TEST(olepicture)
test_OleCreatePictureIndirect
();
test_OleCreatePictureIndirect
();
test_Render
();
test_Render
();
test_get_Attributes
();
test_get_Attributes
();
test_get_Handle
();
}
}
...
...
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