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
d7bc2eff
Commit
d7bc2eff
authored
Nov 28, 2011
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 29, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Implemented _ultow_s.
parent
a84454aa
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
58 additions
and
4 deletions
+58
-4
msvcr100.spec
dlls/msvcr100/msvcr100.spec
+1
-1
msvcr80.spec
dlls/msvcr80/msvcr80.spec
+1
-1
msvcr90.spec
dlls/msvcr90/msvcr90.spec
+1
-1
msvcrt.spec
dlls/msvcrt/msvcrt.spec
+1
-1
string.c
dlls/msvcrt/string.c
+54
-0
No files found.
dlls/msvcr100/msvcr100.spec
View file @
d7bc2eff
...
...
@@ -1202,7 +1202,7 @@
@ cdecl _ultoa(long ptr long) msvcrt._ultoa
@ cdecl _ultoa_s(long ptr long long) msvcrt._ultoa_s
@ cdecl _ultow(long ptr long) msvcrt._ultow
@
stub
_ultow_s
@
cdecl _ultow_s(long ptr long long) msvcrt.
_ultow_s
@ cdecl _umask(long) msvcrt._umask
@ stub _umask_s
@ stub _ungetc_nolock
...
...
dlls/msvcr80/msvcr80.spec
View file @
d7bc2eff
...
...
@@ -1055,7 +1055,7 @@
@ cdecl _ultoa(long ptr long) msvcrt._ultoa
@ cdecl _ultoa_s(long ptr long long) msvcrt._ultoa_s
@ cdecl _ultow(long ptr long) msvcrt._ultow
@
stub
_ultow_s
@
cdecl _ultow_s(long ptr long long) msvcrt.
_ultow_s
@ cdecl _umask(long) msvcrt._umask
@ stub _umask_s
@ stub _ungetc_nolock
...
...
dlls/msvcr90/msvcr90.spec
View file @
d7bc2eff
...
...
@@ -1049,7 +1049,7 @@
@ cdecl _ultoa(long ptr long) msvcrt._ultoa
@ cdecl _ultoa_s(long ptr long long) msvcrt._ultoa_s
@ cdecl _ultow(long ptr long) msvcrt._ultow
@
stub
_ultow_s
@
cdecl _ultow_s(long ptr long long) msvcrt.
_ultow_s
@ cdecl _umask(long) msvcrt._umask
@ stub _umask_s
@ stub _ungetc_nolock
...
...
dlls/msvcrt/msvcrt.spec
View file @
d7bc2eff
...
...
@@ -991,7 +991,7 @@
@ cdecl _ultoa(long ptr long) ntdll._ultoa
@ cdecl _ultoa_s(long ptr long long)
@ cdecl _ultow(long ptr long) ntdll._ultow
# stub
_ultow_s(long ptr long long)
@ cdecl
_ultow_s(long ptr long long)
@ cdecl _umask(long) MSVCRT__umask
# stub _umask_s(long ptr)
@ cdecl _ungetch(long)
...
...
dlls/msvcrt/string.c
View file @
d7bc2eff
...
...
@@ -1288,6 +1288,60 @@ int CDECL _ultoa_s(MSVCRT_ulong value, char *str, MSVCRT_size_t size, int radix)
}
/*********************************************************************
* _ultow_s (MSVCRT.@)
*/
int
CDECL
_ultow_s
(
MSVCRT_ulong
value
,
WCHAR
*
str
,
MSVCRT_size_t
size
,
int
radix
)
{
MSVCRT_ulong
digit
;
WCHAR
buffer
[
33
],
*
pos
;
size_t
len
;
if
(
!
str
||
!
size
||
radix
<
2
||
radix
>
36
)
{
if
(
str
&&
size
)
str
[
0
]
=
'\0'
;
*
MSVCRT__errno
()
=
MSVCRT_EINVAL
;
return
MSVCRT_EINVAL
;
}
pos
=
buffer
+
32
;
*
pos
=
'\0'
;
do
{
digit
=
value
%
radix
;
value
/=
radix
;
if
(
digit
<
10
)
*--
pos
=
'0'
+
digit
;
else
*--
pos
=
'a'
+
digit
-
10
;
}
while
(
value
!=
0
);
len
=
buffer
+
33
-
pos
;
if
(
len
>
size
)
{
size_t
i
;
WCHAR
*
p
=
str
;
/* Copy the temporary buffer backwards up to the available number of
* characters. */
for
(
pos
=
buffer
+
31
,
i
=
0
;
i
<
size
;
i
++
)
*
p
++
=
*
pos
--
;
str
[
0
]
=
'\0'
;
*
MSVCRT__errno
()
=
MSVCRT_ERANGE
;
return
MSVCRT_ERANGE
;
}
memcpy
(
str
,
pos
,
len
*
sizeof
(
WCHAR
));
return
0
;
}
/*********************************************************************
* _i64toa_s (MSVCRT.@)
*/
int
CDECL
_i64toa_s
(
__int64
value
,
char
*
str
,
MSVCRT_size_t
size
,
int
radix
)
...
...
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