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
6aea3dcf
Commit
6aea3dcf
authored
Nov 15, 2011
by
Piotr Caban
Committed by
Alexandre Julliard
Nov 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcr90: Added __vswprintf_l implementation.
parent
31853fc2
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
48 additions
and
3 deletions
+48
-3
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+1
-1
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-1
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-1
msvcr90.c
dlls/msvcr90/tests/msvcr90.c
+45
-0
No files found.
dlls/msvcr100/msvcr100.spec
View file @
6aea3dcf
...
...
@@ -480,7 +480,7 @@
@ cdecl __unDNameEx(ptr str long ptr ptr ptr long) msvcrt.__unDNameEx
@ stub __unDNameHelper
@ extern __unguarded_readlc_active msvcrt.__unguarded_readlc_active
@
stub _
_vswprintf_l
@
cdecl __vswprintf_l(ptr wstr ptr ptr) msvcrt.
_vswprintf_l
@ extern __wargv msvcrt.__wargv
@ cdecl __wcserror(wstr) msvcrt.__wcserror
@ cdecl __wcserror_s(ptr long wstr) msvcrt.__wcserror_s
...
...
dlls/msvcr80/msvcr80.spec
View file @
6aea3dcf
...
...
@@ -304,7 +304,7 @@
@ cdecl __unDNameEx(ptr str long ptr ptr ptr long) msvcrt.__unDNameEx
@ stub __unDNameHelper
@ extern __unguarded_readlc_active msvcrt.__unguarded_readlc_active
@
stub _
_vswprintf_l
@
cdecl __vswprintf_l(ptr wstr ptr ptr) msvcrt.
_vswprintf_l
@ extern __wargv msvcrt.__wargv
@ cdecl __wcserror(wstr) msvcrt.__wcserror
@ cdecl __wcserror_s(ptr long wstr) msvcrt.__wcserror_s
...
...
dlls/msvcr90/msvcr90.spec
View file @
6aea3dcf
...
...
@@ -296,7 +296,7 @@
@ cdecl __unDNameEx(ptr str long ptr ptr ptr long) msvcrt.__unDNameEx
@ stub __unDNameHelper
@ extern __unguarded_readlc_active msvcrt.__unguarded_readlc_active
@
stub _
_vswprintf_l
@
cdecl __vswprintf_l(ptr wstr ptr ptr) msvcrt.
_vswprintf_l
@ extern __wargv msvcrt.__wargv
@ cdecl __wcserror(wstr) msvcrt.__wcserror
@ cdecl __wcserror_s(ptr long wstr) msvcrt.__wcserror_s
...
...
dlls/msvcr90/tests/msvcr90.c
View file @
6aea3dcf
...
...
@@ -98,6 +98,8 @@ static int* (__cdecl *p_fpecode)(void);
static
int
(
__cdecl
*
p_configthreadlocale
)(
int
);
static
void
*
(
__cdecl
*
p_get_terminate
)(
void
);
static
void
*
(
__cdecl
*
p_get_unexpected
)(
void
);
static
int
(
__cdecl
*
p__vswprintf_l
)(
wchar_t
*
,
const
wchar_t
*
,
_locale_t
,
__ms_va_list
);
static
int
(
__cdecl
*
p_vswprintf_l
)(
wchar_t
*
,
const
wchar_t
*
,
_locale_t
,
__ms_va_list
);
/* type info */
...
...
@@ -264,6 +266,8 @@ static BOOL init(void)
SET
(
p_configthreadlocale
,
"_configthreadlocale"
);
SET
(
p_get_terminate
,
"_get_terminate"
);
SET
(
p_get_unexpected
,
"_get_unexpected"
);
SET
(
p__vswprintf_l
,
"__vswprintf_l"
);
SET
(
p_vswprintf_l
,
"_vswprintf_l"
);
if
(
sizeof
(
void
*
)
==
8
)
{
SET
(
p_type_info_name_internal_method
,
"?_name_internal_method@type_info@@QEBAPEBDPEAU__type_info_node@@@Z"
);
...
...
@@ -981,6 +985,46 @@ static void test_getptd(void)
ok
(
p_get_unexpected
()
==
ptd
->
unexpected_handler
,
"ptd->unexpected_handler != _get_unexpected()
\n
"
);
}
static
int
__cdecl
__vswprintf_l_wrapper
(
wchar_t
*
buf
,
const
wchar_t
*
format
,
_locale_t
locale
,
...)
{
int
ret
;
__ms_va_list
valist
;
__ms_va_start
(
valist
,
locale
);
ret
=
p__vswprintf_l
(
buf
,
format
,
locale
,
valist
);
__ms_va_end
(
valist
);
return
ret
;
}
static
int
__cdecl
_vswprintf_l_wrapper
(
wchar_t
*
buf
,
const
wchar_t
*
format
,
_locale_t
locale
,
...)
{
int
ret
;
__ms_va_list
valist
;
__ms_va_start
(
valist
,
locale
);
ret
=
p_vswprintf_l
(
buf
,
format
,
locale
,
valist
);
__ms_va_end
(
valist
);
return
ret
;
}
static
void
test__vswprintf_l
(
void
)
{
static
const
wchar_t
format
[]
=
{
't'
,
'e'
,
's'
,
't'
,
0
};
wchar_t
buf
[
32
];
int
ret
;
ret
=
__vswprintf_l_wrapper
(
buf
,
format
,
NULL
);
ok
(
ret
==
4
,
"ret = %d
\n
"
,
ret
);
ok
(
!
memcmp
(
buf
,
format
,
sizeof
(
format
)),
"buf = %s, expected %s
\n
"
,
wine_dbgstr_w
(
buf
),
wine_dbgstr_w
(
format
));
ret
=
_vswprintf_l_wrapper
(
buf
,
format
,
NULL
);
ok
(
ret
==
4
,
"ret = %d
\n
"
,
ret
);
ok
(
!
memcmp
(
buf
,
format
,
sizeof
(
format
)),
"buf = %s, expected %s
\n
"
,
wine_dbgstr_w
(
buf
),
wine_dbgstr_w
(
format
));
}
START_TEST
(
msvcr90
)
{
if
(
!
init
())
...
...
@@ -1001,4 +1045,5 @@ START_TEST(msvcr90)
test__realloc_crt
();
test_typeinfo
();
test_getptd
();
test__vswprintf_l
();
}
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