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
b7b7f2b6
Commit
b7b7f2b6
authored
Jan 24, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid importing _strlwr/_strupr from ntdll.
parent
a17b2c1c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
33 deletions
+16
-33
mbcs.c
dlls/msvcrt/mbcs.c
+6
-16
msvcrt.h
dlls/msvcrt/msvcrt.h
+0
-7
combo.c
dlls/user/combo.c
+6
-5
int21.c
dlls/winedos/int21.c
+4
-1
winternl.h
include/winternl.h
+0
-3
winedbg.c
programs/winedbg/winedbg.c
+0
-1
No files found.
dlls/msvcrt/mbcs.c
View file @
b7b7f2b6
...
...
@@ -109,16 +109,6 @@ static inline unsigned char *u__strnset( unsigned char *s, unsigned char c, size
return
(
unsigned
char
*
)
_strnset
(
(
char
*
)
s
,
c
,
len
);
}
static
inline
unsigned
char
*
u__strlwr
(
unsigned
char
*
s
)
{
return
(
unsigned
char
*
)
_strlwr
(
(
char
*
)
s
);
}
static
inline
unsigned
char
*
u__strupr
(
unsigned
char
*
s
)
{
return
(
unsigned
char
*
)
_strupr
(
(
char
*
)
s
);
}
static
inline
size_t
u_strcspn
(
const
unsigned
char
*
s
,
const
unsigned
char
*
rej
)
{
return
strcspn
(
(
const
char
*
)
s
,
(
const
char
*
)
rej
);
...
...
@@ -1122,12 +1112,12 @@ unsigned char* _mbsncat(unsigned char* dst, const unsigned char* src, MSVCRT_siz
*/
unsigned
char
*
_mbslwr
(
unsigned
char
*
s
)
{
unsigned
char
*
ret
=
s
;
if
(
!
s
)
return
NULL
;
if
(
MSVCRT___mb_cur_max
>
1
)
{
unsigned
int
c
;
unsigned
char
*
p
=
s
;
while
(
*
s
)
{
c
=
_mbctolower
(
_mbsnextc
(
s
));
...
...
@@ -1139,9 +1129,9 @@ unsigned char* _mbslwr(unsigned char* s)
}
*
s
++=
c
;
}
return
p
;
}
return
u__strlwr
(
s
);
else
for
(
;
*
s
;
s
++
)
*
s
=
tolower
(
*
s
);
return
ret
;
}
...
...
@@ -1150,12 +1140,12 @@ unsigned char* _mbslwr(unsigned char* s)
*/
unsigned
char
*
_mbsupr
(
unsigned
char
*
s
)
{
unsigned
char
*
ret
=
s
;
if
(
!
s
)
return
NULL
;
if
(
MSVCRT___mb_cur_max
>
1
)
{
unsigned
int
c
;
unsigned
char
*
p
=
s
;
while
(
*
s
)
{
c
=
_mbctoupper
(
_mbsnextc
(
s
));
...
...
@@ -1167,9 +1157,9 @@ unsigned char* _mbsupr(unsigned char* s)
}
*
s
++=
c
;
}
return
p
;
}
return
u__strupr
(
s
);
else
for
(
;
*
s
;
s
++
)
*
s
=
toupper
(
*
s
);
return
ret
;
}
...
...
dlls/msvcrt/msvcrt.h
View file @
b7b7f2b6
...
...
@@ -641,11 +641,4 @@ int _dup2(int, int);
int
_pipe
(
int
*
,
unsigned
int
,
int
);
#endif
/* FIXME: Functions that we forward to. They shouldn't be defined
* here, but for now they're not declared in the standard headers.
*/
void
_splitpath
(
const
char
*
,
char
*
,
char
*
,
char
*
,
char
*
);
char
*
_strlwr
(
char
*
);
char
*
_strupr
(
char
*
);
#endif
/* __WINE_MSVCRT_H */
dlls/user/combo.c
View file @
b7b7f2b6
...
...
@@ -2088,17 +2088,17 @@ static LRESULT ComboWndProc_common( HWND hwnd, UINT message,
else
/* unlike the unicode version, the ansi version does not overwrite
the string if converting case */
{
char
*
string
=
NULL
;
char
*
p
,
*
string
=
NULL
;
LRESULT
ret
;
if
(
lphc
->
dwStyle
&
CBS_LOWERCASE
)
{
string
=
strdupA
((
LPSTR
)
lParam
);
_strlwr
(
string
);
for
(
p
=
string
;
*
p
;
p
++
)
*
p
=
tolower
(
*
p
);
}
else
if
(
lphc
->
dwStyle
&
CBS_UPPERCASE
)
{
string
=
strdupA
((
LPSTR
)
lParam
);
_strupr
(
string
);
for
(
p
=
string
;
*
p
;
p
++
)
*
p
=
toupper
(
*
p
);
}
ret
=
SendMessageA
(
lphc
->
hWndLBox
,
LB_ADDSTRING
,
0
,
string
?
(
LPARAM
)
string
:
lParam
);
HeapFree
(
GetProcessHeap
(),
0
,
string
);
...
...
@@ -2119,10 +2119,11 @@ static LRESULT ComboWndProc_common( HWND hwnd, UINT message,
}
else
{
char
*
p
;
if
(
lphc
->
dwStyle
&
CBS_LOWERCASE
)
_strlwr
((
LPSTR
)
lParam
);
for
(
p
=
(
LPSTR
)
lParam
;
*
p
;
p
++
)
*
p
=
tolower
(
*
p
);
else
if
(
lphc
->
dwStyle
&
CBS_UPPERCASE
)
_strupr
((
LPSTR
)
lParam
);
for
(
p
=
(
LPSTR
)
lParam
;
*
p
;
p
++
)
*
p
=
toupper
(
*
p
);
return
SendMessageA
(
lphc
->
hWndLBox
,
LB_INSERTSTRING
,
wParam
,
lParam
);
}
case
CB_DELETESTRING16
:
...
...
dlls/winedos/int21.c
View file @
b7b7f2b6
...
...
@@ -1989,7 +1989,10 @@ static void INT21_ExtendedCountryInformation( CONTEXT86 *context )
case
0x22
:
/* CAPITALIZE ASCIIZ STRING */
case
0xa2
:
/* CAPITALIZE ASCIIZ FILENAME */
TRACE
(
"Convert ASCIIZ string to uppercase
\n
"
);
_strupr
(
(
LPSTR
)
CTX_SEG_OFF_TO_LIN
(
context
,
context
->
SegDs
,
context
->
Edx
)
);
{
char
*
p
=
CTX_SEG_OFF_TO_LIN
(
context
,
context
->
SegDs
,
context
->
Edx
);
for
(
;
*
p
;
p
++
)
*
p
=
toupper
(
*
p
);
}
break
;
case
0x23
:
/* DETERMINE IF CHARACTER REPRESENTS YES/NO RESPONSE */
...
...
include/winternl.h
View file @
b7b7f2b6
...
...
@@ -1685,9 +1685,6 @@ typedef enum _SYSDBG_COMMAND {
* Function declarations
*/
extern
LPSTR
_strlwr
(
LPSTR
str
);
/* FIXME: Doesn't belong here */
extern
LPSTR
_strupr
(
LPSTR
str
);
/* FIXME: Doesn't belong here */
#if defined(__i386__) && defined(__GNUC__)
static
inline
void
WINAPI
DbgBreakPoint
(
void
)
{
__asm__
__volatile__
(
"int3"
);
}
static
inline
void
WINAPI
DbgUserBreakPoint
(
void
)
{
__asm__
__volatile__
(
"int3"
);
}
...
...
programs/winedbg/winedbg.c
View file @
b7b7f2b6
...
...
@@ -955,7 +955,6 @@ static unsigned dbg_handle_debug_event(DEBUG_EVENT* de)
buffer
,
(
unsigned
long
)
de
->
u
.
LoadDll
.
lpBaseOfDll
,
de
->
u
.
LoadDll
.
dwDebugInfoFileOffset
,
de
->
u
.
LoadDll
.
nDebugInfoSize
);
_strupr
(
buffer
);
SymLoadModule
(
dbg_curr_process
->
handle
,
de
->
u
.
LoadDll
.
hFile
,
buffer
,
NULL
,
(
unsigned
long
)
de
->
u
.
LoadDll
.
lpBaseOfDll
,
0
);
break_set_xpoints
(
FALSE
);
...
...
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