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
e16922f3
Commit
e16922f3
authored
Jul 02, 2012
by
Piotr Caban
Committed by
Alexandre Julliard
Jul 02, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90/tests: Fixed _Getctype tests.
parent
8a15e426
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
misc.c
dlls/msvcp90/tests/misc.c
+6
-5
No files found.
dlls/msvcp90/tests/misc.c
View file @
e16922f3
...
...
@@ -58,7 +58,7 @@ static BYTE (__cdecl *p_short_eq)(const void*, const void*);
static
char
*
(
__cdecl
*
p_Copy_s
)(
char
*
,
size_t
,
const
char
*
,
size_t
);
static
unsigned
short
(
__cdecl
*
p_wctype
)(
const
char
*
);
static
MSVCP__Ctypevec
(
__cdecl
*
p__Getctype
)(
void
);
static
MSVCP__Ctypevec
*
(
__cdecl
*
p__Getctype
)(
MSVCP__Ctypevec
*
);
#undef __thiscall
#ifdef __i386__
...
...
@@ -362,16 +362,16 @@ static void test__Getctype(void)
{
MSVCP__Ctypevec
ret
;
ret
=
p__Getctype
(
);
ok
(
p__Getctype
(
&
ret
)
==
&
ret
,
"__Getctype returned incorrect pointer
\n
"
);
ok
(
ret
.
handle
==
0
,
"ret.handle = %d
\n
"
,
ret
.
handle
);
ok
(
ret
.
page
==
0
,
"ret.page = %d
\n
"
,
ret
.
page
);
ok
(
ret
.
delfl
==
1
,
"ret.delfl = %d
\n
"
,
ret
.
delfl
);
ok
(
ret
.
table
[
0
]
==
32
,
"ret.table[0] = %d
\n
"
,
ret
.
table
[
0
]);
p_free
(
ret
.
table
);
p__get_current_locale
()
->
locinfo
->
lc_handle
[
LC_COLLATE
]
=
1
;
ret
=
p__Getctype
(
);
ok
(
ret
.
handle
==
1
,
"ret.handle = %d
\n
"
,
ret
.
handle
);
p__get_current_locale
()
->
locinfo
->
lc_handle
[
LC_COLLATE
]
=
0x1234567
;
ok
(
p__Getctype
(
&
ret
)
==
&
ret
,
"__Getctype returned incorrect pointer
\n
"
);
ok
(
ret
.
handle
==
0x1234567
,
"ret.handle = %d
\n
"
,
ret
.
handle
);
ok
(
ret
.
page
==
0
,
"ret.page = %d
\n
"
,
ret
.
page
);
ok
(
ret
.
delfl
==
1
,
"ret.delfl = %d
\n
"
,
ret
.
delfl
);
ok
(
ret
.
table
[
0
]
==
32
,
"ret.table[0] = %d
\n
"
,
ret
.
table
[
0
]);
...
...
@@ -418,6 +418,7 @@ static void test_virtual_call(void)
char
str2
[]
=
"TEST"
;
int
ret
;
p__get_current_locale
()
->
locinfo
->
lc_handle
[
LC_COLLATE
]
=
1
;
call_func2
(
p_collate_char_ctor_refs
,
this
,
0
);
ret
=
(
int
)
call_func5
(
p_collate_char_compare
,
this
,
str1
,
str1
+
4
,
str1
,
str1
+
4
);
ok
(
ret
==
0
,
"collate<char>::compare returned %d
\n
"
,
ret
);
...
...
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