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
766530df
Commit
766530df
authored
May 16, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
May 17, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Fix ScriptGetProperties so that first pointer can be NULL.
parent
82014111
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
usp10.c
dlls/usp10/usp10.c
+9
-6
No files found.
dlls/usp10/usp10.c
View file @
766530df
...
...
@@ -109,13 +109,16 @@ HRESULT WINAPI ScriptFreeCache(SCRIPT_CACHE *psc)
*/
HRESULT
WINAPI
ScriptGetProperties
(
const
SCRIPT_PROPERTIES
***
ppSp
,
int
*
piNumScripts
)
{
TRACE
(
"%p,%p
\n
"
,
ppSp
,
piNumScripts
);
TRACE
(
"%p,%p
\n
"
,
ppSp
,
piNumScripts
);
/* Set up a sensible default and intialise pointers */
*
piNumScripts
=
MAX_SCRIPTS
;
*
ppSp
=
Global_Script
;
TRACE
(
"ppSp:%p, *ppSp:%p, **ppSp:%p, %d
\n
"
,
ppSp
,
*
ppSp
,
**
ppSp
,
*
piNumScripts
);
if
(
!
ppSp
&&
!
piNumScripts
)
return
E_INVALIDARG
;
/* Set up a sensible default and intialise pointers */
if
(
piNumScripts
)
*
piNumScripts
=
MAX_SCRIPTS
;
if
(
ppSp
)
*
ppSp
=
Global_Script
;
TRACE
(
"ppSp:%p, *ppSp:%p, **ppSp:%p, %d
\n
"
,
ppSp
,
ppSp
?
*
ppSp
:
NULL
,
(
ppSp
&&
*
ppSp
)
?
**
ppSp
:
NULL
,
piNumScripts
?
*
piNumScripts
:
-
1
);
return
0
;
}
...
...
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