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
f0fbf6f5
Commit
f0fbf6f5
authored
Apr 01, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp: Use C runtime wchar functions instead of wine/unicode.h.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
83c99c02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
locale.c
dlls/msvcp90/locale.c
+7
-8
No files found.
dlls/msvcp90/locale.c
View file @
f0fbf6f5
...
...
@@ -34,7 +34,6 @@
#include "winbase.h"
#include "winnls.h"
#include "msvcp90.h"
#include "wine/unicode.h"
#include "wine/list.h"
#include "wine/debug.h"
...
...
@@ -2004,7 +2003,7 @@ int __cdecl _Tolower(int ch, const _Ctypevec *ctype)
if
(
!
MultiByteToWideChar
(
cp
,
MB_ERR_INVALID_CHARS
,
str
,
size
,
&
wide
,
1
))
return
ch
;
lower
=
to
lowerW
(
wide
);
lower
=
to
wlower
(
wide
);
if
(
lower
==
wide
)
return
ch
;
...
...
@@ -2100,7 +2099,7 @@ int __cdecl _Toupper(int ch, const _Ctypevec *ctype)
if
(
!
MultiByteToWideChar
(
cp
,
MB_ERR_INVALID_CHARS
,
str
,
size
,
&
wide
,
1
))
return
ch
;
upper
=
to
upperW
(
wide
);
upper
=
to
wupper
(
wide
);
if
(
upper
==
wide
)
return
ch
;
...
...
@@ -2770,7 +2769,7 @@ MSVCP_size_t __cdecl ctype_short__Getcat_old(const locale_facet **facet)
wchar_t
__cdecl
_Towlower
(
wchar_t
ch
,
const
_Ctypevec
*
ctype
)
{
TRACE
(
"(%d %p)
\n
"
,
ch
,
ctype
);
return
to
lowerW
(
ch
);
return
to
wlower
(
ch
);
}
ctype_wchar
*
ctype_wchar_use_facet
(
const
locale
*
loc
)
...
...
@@ -2896,7 +2895,7 @@ const wchar_t* __thiscall ctype_wchar_tolower(const ctype_wchar *this,
wchar_t
__cdecl
_Towupper
(
wchar_t
ch
,
const
_Ctypevec
*
ctype
)
{
TRACE
(
"(%d %p)
\n
"
,
ch
,
ctype
);
return
to
upperW
(
ch
);
return
to
wupper
(
ch
);
}
/* ?do_toupper@?$ctype@_W@std@@MBE_W_W@Z */
...
...
@@ -10650,7 +10649,7 @@ static wchar_t* create_time_get_str(const wchar_t *str)
wchar_t
*
ret
;
int
len
;
len
=
strlenW
(
str
)
+
1
;
len
=
l
strlenW
(
str
)
+
1
;
ret
=
MSVCRT_operator_new
(
len
*
sizeof
(
wchar_t
));
if
(
ret
)
memcpy
(
ret
,
str
,
len
*
sizeof
(
wchar_t
));
...
...
@@ -10944,9 +10943,9 @@ static int find_longest_match_wchar(istreambuf_iterator_wchar *iter, const wchar
match
=
-
1
;
for
(
p
=
str
+
1
,
i
=
0
;
*
p
;
p
=
(
*
end
?
end
+
1
:
end
),
i
++
)
{
end
=
strchrW
(
p
,
':'
);
end
=
wcschr
(
p
,
':'
);
if
(
!
end
)
end
=
p
+
strlenW
(
p
);
end
=
p
+
l
strlenW
(
p
);
if
(
end
-
p
>=
len
&&
!
memcmp
(
p
,
buf
,
len
*
sizeof
(
wchar_t
)))
{
...
...
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