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
02dcc198
Commit
02dcc198
authored
Dec 04, 2009
by
James Hawkins
Committed by
Alexandre Julliard
Dec 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Add tests for DispGetParam. Fix two issues that crashed the tests.
parent
f3d194b3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
dispatch.c
dlls/oleaut32/dispatch.c
+7
-0
Makefile.in
dlls/oleaut32/tests/Makefile.in
+1
-0
dispatch.c
dlls/oleaut32/tests/dispatch.c
+0
-0
No files found.
dlls/oleaut32/dispatch.c
View file @
02dcc198
...
@@ -130,6 +130,13 @@ HRESULT WINAPI DispGetParam(
...
@@ -130,6 +130,13 @@ HRESULT WINAPI DispGetParam(
TRACE
(
"position=%d, cArgs=%d, cNamedArgs=%d
\n
"
,
TRACE
(
"position=%d, cArgs=%d, cNamedArgs=%d
\n
"
,
position
,
pdispparams
->
cArgs
,
pdispparams
->
cNamedArgs
);
position
,
pdispparams
->
cArgs
,
pdispparams
->
cNamedArgs
);
if
(
pdispparams
->
cArgs
>
0
&&
!
pdispparams
->
rgvarg
)
return
E_INVALIDARG
;
if
(
!
pvarResult
)
return
E_INVALIDARG
;
if
(
position
<
pdispparams
->
cArgs
)
{
if
(
position
<
pdispparams
->
cArgs
)
{
/* positional arg? */
/* positional arg? */
pos
=
pdispparams
->
cArgs
-
position
-
1
;
pos
=
pdispparams
->
cArgs
-
position
-
1
;
...
...
dlls/oleaut32/tests/Makefile.in
View file @
02dcc198
...
@@ -6,6 +6,7 @@ TESTDLL = oleaut32.dll
...
@@ -6,6 +6,7 @@ TESTDLL = oleaut32.dll
IMPORTS
=
oleaut32 ole32 rpcrt4 user32 gdi32 advapi32 kernel32
IMPORTS
=
oleaut32 ole32 rpcrt4 user32 gdi32 advapi32 kernel32
CTESTS
=
\
CTESTS
=
\
dispatch.c
\
olefont.c
\
olefont.c
\
olepicture.c
\
olepicture.c
\
safearray.c
\
safearray.c
\
...
...
dlls/oleaut32/tests/dispatch.c
0 → 100644
View file @
02dcc198
This diff is collapsed.
Click to expand it.
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