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
0ba307d2
Commit
0ba307d2
authored
Feb 16, 2006
by
Jeff Latimer
Committed by
Alexandre Julliard
Feb 16, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Implement ScriptGetProperties.
parent
0aa8f3a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
8 deletions
+40
-8
usp10.c
dlls/usp10/tests/usp10.c
+5
-6
usp10.c
dlls/usp10/usp10.c
+35
-2
No files found.
dlls/usp10/tests/usp10.c
View file @
0ba307d2
...
...
@@ -79,12 +79,11 @@ START_TEST(usp10)
* by checking a known value in the table */
hr
=
ScriptGetProperties
(
&
ppSp
,
&
iMaxProps
);
trace
(
"number of script properties %d
\n
"
,
iMaxProps
);
todo_wine
{
ok
(
iMaxProps
>
0
,
"Number of scripts returned should not be 0
\n
"
);
if
(
iMaxProps
>
0
)
ok
(
ppSp
[
5
]
->
langid
==
9
,
"Langid[5] not = to 9
\n
"
);
/* Check a known value to ensure */
/* ptrs work */
}
ok
(
iMaxProps
>
0
,
"Number of scripts returned should not be 0
\n
"
);
if
(
iMaxProps
>
0
)
ok
(
ppSp
[
5
]
->
langid
==
9
,
"Langid[5] not = to 9
\n
"
);
/* Check a known value to ensure */
/* ptrs work */
/* This set of tests are to check that the various edits in ScriptIemize work */
cInChars
=
5
;
/* Length of test without NULL */
...
...
dlls/usp10/usp10.c
View file @
0ba307d2
...
...
@@ -39,6 +39,35 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
uniscribe
);
#define MAX_SCRIPTS 8
/* Set up a default for ScriptGetProperties */
static
const
SCRIPT_PROPERTIES
Default_Script_0
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
static
const
SCRIPT_PROPERTIES
Default_Script_1
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
static
const
SCRIPT_PROPERTIES
Default_Script_2
=
{
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
static
const
SCRIPT_PROPERTIES
Default_Script_3
=
{
9
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
static
const
SCRIPT_PROPERTIES
Default_Script_4
=
{
9
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
static
const
SCRIPT_PROPERTIES
Default_Script_5
=
{
9
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
0
,
0
};
static
const
SCRIPT_PROPERTIES
Default_Script_6
=
{
9
,
1
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
0
,
0
};
static
const
SCRIPT_PROPERTIES
Default_Script_7
=
{
8
,
0
,
0
,
0
,
0
,
161
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
};
static
const
SCRIPT_PROPERTIES
*
Global_Script
[
MAX_SCRIPTS
]
=
{
&
Default_Script_0
,
&
Default_Script_1
,
&
Default_Script_2
,
&
Default_Script_3
,
&
Default_Script_4
,
&
Default_Script_5
,
&
Default_Script_6
,
&
Default_Script_7
};
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstDLL
,
DWORD
fdwReason
,
LPVOID
lpv
)
{
switch
(
fdwReason
)
{
...
...
@@ -69,9 +98,13 @@ HRESULT WINAPI ScriptFreeCache(SCRIPT_CACHE *psc)
*/
HRESULT
WINAPI
ScriptGetProperties
(
const
SCRIPT_PROPERTIES
***
ppSp
,
int
*
piNumScripts
)
{
FIXME
(
"%p,%p
\n
"
,
ppSp
,
piNumScripts
);
TRACE
(
"%p,%p
\n
"
,
ppSp
,
piNumScripts
);
if
(
piNumScripts
)
*
piNumScripts
=
0
;
/* 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
);
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