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
073bb1d0
Commit
073bb1d0
authored
Mar 26, 2019
by
Piotr Caban
Committed by
Alexandre Julliard
Mar 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use NTDLL_tolower instead of toupper.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3588e5ab
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
ntdll_misc.h
dlls/ntdll/ntdll_misc.h
+1
-0
printf.c
dlls/ntdll/printf.c
+2
-2
No files found.
dlls/ntdll/ntdll_misc.h
View file @
073bb1d0
...
...
@@ -258,5 +258,6 @@ NTSTATUS WINAPI RtlHashUnicodeString(PCUNICODE_STRING,BOOLEAN,ULONG,ULONG*);
void
WINAPI
LdrInitializeThunk
(
CONTEXT
*
,
void
**
,
ULONG_PTR
,
ULONG_PTR
);
/* string functions */
int
__cdecl
NTDLL_tolower
(
int
c
);
int
__cdecl
_stricmp
(
LPCSTR
str1
,
LPCSTR
str2
);
#endif
dlls/ntdll/printf.c
View file @
073bb1d0
...
...
@@ -378,7 +378,7 @@ static void pf_fixup_exponent( char *buf )
{
char
*
tmp
=
buf
;
while
(
tmp
[
0
]
&&
toupper
(
tmp
[
0
])
!=
'E
'
)
while
(
tmp
[
0
]
&&
NTDLL_tolower
(
tmp
[
0
])
!=
'e
'
)
tmp
++
;
if
(
tmp
[
0
]
&&
(
tmp
[
1
]
==
'+'
||
tmp
[
1
]
==
'-'
)
&&
...
...
@@ -637,7 +637,7 @@ static int pf_vsnprintf( pf_output *out, const WCHAR *format, __ms_va_list valis
if
(
pf_is_double_format
(
flags
.
Format
)
)
{
sprintf
(
x
,
fmt
,
va_arg
(
valist
,
double
)
);
if
(
toupper
(
flags
.
Format
)
==
'E'
||
toupper
(
flags
.
Format
)
==
'G
'
)
if
(
NTDLL_tolower
(
flags
.
Format
)
==
'e'
||
NTDLL_tolower
(
flags
.
Format
)
==
'g
'
)
pf_fixup_exponent
(
x
);
}
else
...
...
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