Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3f675c1a
Commit
3f675c1a
authored
Mar 26, 2019
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Use internal toupper implementation.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
834134f2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
file.c
dlls/msvcrt/file.c
+1
-1
mbcs.c
dlls/msvcrt/mbcs.c
+3
-3
printf.h
dlls/msvcrt/printf.h
+3
-3
No files found.
dlls/msvcrt/file.c
View file @
3f675c1a
...
...
@@ -3007,7 +3007,7 @@ int CDECL MSVCRT_stat64(const char* path, struct MSVCRT__stat64 * buf)
as a drive letter
*/
if
(
isalpha
(
*
path
)
&&
(
*
(
path
+
1
)
==
':'
))
buf
->
st_dev
=
buf
->
st_rdev
=
toupper
(
*
path
)
-
'A'
;
/* drive num */
buf
->
st_dev
=
buf
->
st_rdev
=
MSVCRT__toupper_l
(
*
path
,
NULL
)
-
'A'
;
/* drive num */
else
buf
->
st_dev
=
buf
->
st_rdev
=
MSVCRT__getdrive
()
-
1
;
...
...
dlls/msvcrt/mbcs.c
View file @
3f675c1a
...
...
@@ -417,7 +417,7 @@ unsigned int CDECL _mbctoupper(unsigned int c)
FIXME
(
"Handle MBC chars
\n
"
);
return
c
;
}
return
toupper
(
c
);
/* ASCII CP or SB char */
return
MSVCRT__toupper_l
(
c
,
NULL
);
/* ASCII CP or SB char */
}
/*********************************************************************
...
...
@@ -1977,7 +1977,7 @@ unsigned char* CDECL _mbsupr(unsigned char* s)
*
s
++=
c
;
}
}
else
for
(
;
*
s
;
s
++
)
*
s
=
toupper
(
*
s
);
else
for
(
;
*
s
;
s
++
)
*
s
=
MSVCRT__toupper_l
(
*
s
,
NULL
);
return
ret
;
}
...
...
@@ -2011,7 +2011,7 @@ int CDECL _mbsupr_s(unsigned char* s, MSVCRT_size_t len)
*
s
++=
c
;
}
}
else
for
(
;
*
s
&&
len
>
0
;
s
++
,
len
--
)
*
s
=
toupper
(
*
s
);
else
for
(
;
*
s
&&
len
>
0
;
s
++
,
len
--
)
*
s
=
MSVCRT__toupper_l
(
*
s
,
NULL
);
if
(
*
s
)
{
*
s
=
'\0'
;
...
...
dlls/msvcrt/printf.h
View file @
3f675c1a
...
...
@@ -354,7 +354,7 @@ static inline void FUNC_NAME(pf_fixup_exponent)(char *buf, BOOL three_digit_exp)
{
char
*
tmp
=
buf
;
while
(
tmp
[
0
]
&&
toupper
(
tmp
[
0
]
)
!=
'E'
)
while
(
tmp
[
0
]
&&
MSVCRT__toupper_l
(
tmp
[
0
],
NULL
)
!=
'E'
)
tmp
++
;
if
(
tmp
[
0
]
&&
(
tmp
[
1
]
==
'+'
||
tmp
[
1
]
==
'-'
)
&&
...
...
@@ -664,10 +664,10 @@ int FUNC_NAME(pf_printf)(FUNC_NAME(puts_clbk) pf_puts, void *puts_ctx, const API
sprintf
(
tmp
,
nan_str
);
if
(
strchr
(
"EFG"
,
flags
.
Format
))
for
(
i
=
0
;
tmp
[
i
];
i
++
)
tmp
[
i
]
=
toupper
(
tmp
[
i
]
);
tmp
[
i
]
=
MSVCRT__toupper_l
(
tmp
[
i
],
NULL
);
}
else
{
sprintf
(
tmp
,
float_fmt
,
val
);
if
(
toupper
(
flags
.
Format
)
==
'E'
||
toupper
(
flags
.
Format
)
==
'G'
)
if
(
MSVCRT__toupper_l
(
flags
.
Format
,
NULL
)
==
'E'
||
MSVCRT__toupper_l
(
flags
.
Format
,
NULL
)
==
'G'
)
FUNC_NAME
(
pf_fixup_exponent
)(
tmp
,
three_digit_exp
);
}
...
...
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