Avoid importing _strlwr/_strupr from ntdll.
This commit is contained in:
parent
a17b2c1cd2
commit
b7b7f2b679
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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"); }
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue