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
dcd247e5
Commit
dcd247e5
authored
Aug 14, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved CharUpper* and CharLower* functions to dlls/user.
parent
c86cb24e
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
141 additions
and
160 deletions
+141
-160
Makefile.in
dlls/Makefile.in
+1
-1
filedlg95.c
dlls/commdlg/filedlg95.c
+1
-2
lstr.c
dlls/user/lstr.c
+113
-0
Makefile.in
dlls/wininet/Makefile.in
+1
-1
wininet.spec
dlls/wininet/wininet.spec
+1
-0
dos_fs.c
files/dos_fs.c
+3
-4
profile.c
files/profile.c
+2
-4
ntddk.h
include/ntddk.h
+4
-0
module.c
loader/ne/module.c
+1
-1
lstr.c
misc/lstr.c
+0
-137
main.c
misc/main.c
+7
-7
int21.c
msdos/int21.c
+7
-3
No files found.
dlls/Makefile.in
View file @
dcd247e5
...
...
@@ -410,7 +410,7 @@ version/libversion.so: liblz32.so libkernel32.so
win32s/libw32skrnl.so
:
libkernel32.so
winaspi/libwnaspi32.so
:
libkernel32.so
wineps/libwineps.so
:
libgdi32.so libkernel32.so
wininet/libwininet.so
:
libkernel32.so
wininet/libwininet.so
:
lib
user32.so lib
kernel32.so
winmm/joystick/libjoystick.drv.so
:
libwinmm.so libuser32.so
winmm/libwinmm.so
:
libuser32.so libkernel32.so
winmm/mcianim/libmcianim.drv.so
:
libwinmm.so libuser32.so libkernel32.so
...
...
dlls/commdlg/filedlg95.c
View file @
dcd247e5
...
...
@@ -25,6 +25,7 @@
#include <string.h>
#include "winbase.h"
#include "ntddk.h"
#include "ldt.h"
#include "heap.h"
#include "commdlg.h"
...
...
@@ -178,8 +179,6 @@ HRESULT FILEDLG95_HandleCustomDialogMessages(HWND hwnd, UINT uMsg, WPARAM wParam
BOOL
FILEDLG95_OnOpenMultipleFiles
(
HWND
hwnd
,
LPSTR
lpstrFileList
,
UINT
nFileCount
,
UINT
sizeUsed
);
static
BOOL
BrowseSelectedFolder
(
HWND
hwnd
);
extern
LPSTR
_strlwr
(
LPSTR
str
);
/***********************************************************************
* GetFileName95
*
...
...
dlls/user/lstr.c
View file @
dcd247e5
...
...
@@ -320,6 +320,119 @@ BOOL WINAPI OemToCharW( LPCSTR s, LPWSTR d )
/***********************************************************************
* CharLowerA (USER32.25)
* FIXME: handle current locale
*/
LPSTR
WINAPI
CharLowerA
(
LPSTR
x
)
{
LPSTR
s
;
if
(
HIWORD
(
x
))
{
s
=
x
;
while
(
*
s
)
{
*
s
=
tolower
(
*
s
);
s
++
;
}
return
x
;
}
else
return
(
LPSTR
)
tolower
((
char
)(
int
)
x
);
}
/***********************************************************************
* CharUpperA (USER32.@)
* FIXME: handle current locale
*/
LPSTR
WINAPI
CharUpperA
(
LPSTR
x
)
{
if
(
HIWORD
(
x
))
{
LPSTR
s
=
x
;
while
(
*
s
)
{
*
s
=
toupper
(
*
s
);
s
++
;
}
return
x
;
}
return
(
LPSTR
)
toupper
((
char
)(
int
)
x
);
}
/***********************************************************************
* CharLowerW (USER32.@)
*/
LPWSTR
WINAPI
CharLowerW
(
LPWSTR
x
)
{
if
(
HIWORD
(
x
))
return
strlwrW
(
x
);
else
return
(
LPWSTR
)((
UINT
)
tolowerW
(
LOWORD
(
x
)));
}
/***********************************************************************
* CharUpperW (USER32.@)
* FIXME: handle current locale
*/
LPWSTR
WINAPI
CharUpperW
(
LPWSTR
x
)
{
if
(
HIWORD
(
x
))
return
struprW
(
x
);
else
return
(
LPWSTR
)((
UINT
)
toupperW
(
LOWORD
(
x
)));
}
/***********************************************************************
* CharLowerBuffA (USER32.@)
* FIXME: handle current locale
*/
DWORD
WINAPI
CharLowerBuffA
(
LPSTR
str
,
DWORD
len
)
{
DWORD
ret
=
len
;
if
(
!
str
)
return
0
;
/* YES */
for
(;
len
;
len
--
,
str
++
)
*
str
=
tolower
(
*
str
);
return
ret
;
}
/***********************************************************************
* CharLowerBuffW (USER32.@)
*/
DWORD
WINAPI
CharLowerBuffW
(
LPWSTR
str
,
DWORD
len
)
{
DWORD
ret
=
len
;
if
(
!
str
)
return
0
;
/* YES */
for
(;
len
;
len
--
,
str
++
)
*
str
=
tolowerW
(
*
str
);
return
ret
;
}
/***********************************************************************
* CharUpperBuffA (USER32.@)
* FIXME: handle current locale
*/
DWORD
WINAPI
CharUpperBuffA
(
LPSTR
str
,
DWORD
len
)
{
DWORD
ret
=
len
;
if
(
!
str
)
return
0
;
/* YES */
for
(;
len
;
len
--
,
str
++
)
*
str
=
toupper
(
*
str
);
return
ret
;
}
/***********************************************************************
* CharUpperBuffW (USER32.@)
*/
DWORD
WINAPI
CharUpperBuffW
(
LPWSTR
str
,
DWORD
len
)
{
DWORD
ret
=
len
;
if
(
!
str
)
return
0
;
/* YES */
for
(;
len
;
len
--
,
str
++
)
*
str
=
toupperW
(
*
str
);
return
ret
;
}
/***********************************************************************
* IsCharLowerA (USER.436) (USER32.@)
* FIXME: handle current locale
*/
...
...
dlls/wininet/Makefile.in
View file @
dcd247e5
...
...
@@ -4,7 +4,7 @@ SRCDIR = @srcdir@
VPATH
=
@srcdir@
MODULE
=
wininet
SOVERSION
=
1.0
IMPORTS
=
kernel32
IMPORTS
=
user32
kernel32
C_SRCS
=
\
http.c
\
...
...
dlls/wininet/wininet.spec
View file @
dcd247e5
...
...
@@ -2,6 +2,7 @@ name wininet
type win32
init WININET_LibMain
import user32.dll
import kernel32.dll
@ stub InternetInitializeAutoProxyDll
...
...
files/dos_fs.c
View file @
dcd247e5
...
...
@@ -22,8 +22,7 @@
#include <unistd.h>
#include "windef.h"
#include "wingdi.h"
#include "winuser.h"
#include "ntddk.h"
#include "wine/winbase16.h"
#include "wine/unicode.h"
#include "winerror.h"
...
...
@@ -1191,7 +1190,7 @@ static DWORD DOSFS_DoGetFullPathName( LPCSTR name, DWORD len, LPSTR result,
memmove
(
p
+
1
,
p
+
3
,
strlen
(
p
+
3
)
+
1
);
}
if
(
!
(
DRIVE_GetFlags
(
drive
)
&
DRIVE_CASE_PRESERVING
))
CharUpperA
(
full_name
.
short_name
);
_strupr
(
full_name
.
short_name
);
namelen
=
strlen
(
full_name
.
short_name
);
if
(
!
strcmp
(
full_name
.
short_name
+
namelen
-
3
,
"
\\
.."
))
{
...
...
@@ -1373,7 +1372,7 @@ static int DOSFS_FindNextEx( FIND_FIRST_INFO *info, WIN32_FIND_DATAA *entry )
!
(
flags
&
DRIVE_CASE_SENSITIVE
)
);
lstrcpynA
(
entry
->
cFileName
,
long_name
,
sizeof
(
entry
->
cFileName
)
);
if
(
!
(
flags
&
DRIVE_CASE_PRESERVING
))
CharLowerA
(
entry
->
cFileName
);
if
(
!
(
flags
&
DRIVE_CASE_PRESERVING
))
_strlwr
(
entry
->
cFileName
);
TRACE
(
"returning %s (%s) %02lx %ld
\n
"
,
entry
->
cFileName
,
entry
->
cAlternateFileName
,
entry
->
dwFileAttributes
,
entry
->
nFileSizeLow
);
...
...
files/profile.c
View file @
dcd247e5
...
...
@@ -18,8 +18,6 @@
#include "winerror.h"
#include "wine/winbase16.h"
#include "windef.h"
#include "wingdi.h"
#include "winuser.h"
#include "winnls.h"
#include "winreg.h"
#include "file.h"
...
...
@@ -511,7 +509,7 @@ static BOOL PROFILE_FlushFile(void)
p
=
buffer
+
strlen
(
buffer
);
*
p
++
=
'/'
;
strcpy
(
p
,
strrchr
(
CurProfile
->
dos_name
,
'\\'
)
+
1
);
CharLowerA
(
p
);
_strlwr
(
p
);
file
=
fopen
(
buffer
,
"w"
);
unix_name
=
buffer
;
}
...
...
@@ -646,7 +644,7 @@ static BOOL PROFILE_Open( LPCSTR filename )
p
=
buffer
+
strlen
(
buffer
);
*
p
++
=
'/'
;
strcpy
(
p
,
strrchr
(
newdos_name
,
'\\'
)
+
1
);
CharLowerA
(
p
);
_strlwr
(
p
);
if
((
file
=
fopen
(
buffer
,
"r"
)))
{
TRACE
(
"(%s): found it in %s
\n
"
,
...
...
include/ntddk.h
View file @
dcd247e5
...
...
@@ -974,6 +974,10 @@ NTSTATUS WINAPI NtReleaseSemaphore( IN HANDLE SemaphoreHandle,
IN
PULONG
PreviousCount
);
/* string functions */
extern
LPSTR
_strlwr
(
LPSTR
str
);
extern
LPSTR
_strupr
(
LPSTR
str
);
/* misc */
#if defined(__i386__) && defined(__GNUC__)
...
...
loader/ne/module.c
View file @
dcd247e5
...
...
@@ -244,7 +244,7 @@ WORD NE_GetOrdinal( HMODULE16 hModule, const char *name )
/* Now copy and uppercase the string */
strcpy
(
buffer
,
name
);
CharUpperA
(
buffer
);
_strupr
(
buffer
);
len
=
strlen
(
buffer
);
/* First search the resident names */
...
...
misc/lstr.c
View file @
dcd247e5
...
...
@@ -30,143 +30,6 @@ DEFAULT_DEBUG_CHANNEL(resource);
extern
const
WORD
OLE2NLS_CT_CType3_LUT
[];
/* FIXME: does not belong here */
/***********************************************************************
* CharLowerA (USER32.25)
* FIXME: handle current locale
*/
LPSTR
WINAPI
CharLowerA
(
LPSTR
x
)
{
LPSTR
s
;
if
(
HIWORD
(
x
))
{
s
=
x
;
while
(
*
s
)
{
*
s
=
tolower
(
*
s
);
s
++
;
}
return
x
;
}
else
return
(
LPSTR
)
tolower
((
char
)(
int
)
x
);
}
/***********************************************************************
* CharLowerBuffA (USER32.26)
* FIXME: handle current locale
*/
DWORD
WINAPI
CharLowerBuffA
(
LPSTR
x
,
DWORD
buflen
)
{
DWORD
done
=
0
;
if
(
!
x
)
return
0
;
/* YES */
while
(
*
x
&&
(
buflen
--
))
{
*
x
=
tolower
(
*
x
);
x
++
;
done
++
;
}
return
done
;
}
/***********************************************************************
* CharLowerBuffW (USER32.27)
*/
DWORD
WINAPI
CharLowerBuffW
(
LPWSTR
x
,
DWORD
buflen
)
{
DWORD
done
=
0
;
if
(
!
x
)
return
0
;
/* YES */
while
(
*
x
&&
(
buflen
--
))
{
*
x
=
tolowerW
(
*
x
);
x
++
;
done
++
;
}
return
done
;
}
/***********************************************************************
* CharLowerW (USER32.28)
* FIXME: handle current locale
*/
LPWSTR
WINAPI
CharLowerW
(
LPWSTR
x
)
{
if
(
HIWORD
(
x
))
{
LPWSTR
s
=
x
;
while
(
*
s
)
{
*
s
=
tolowerW
(
*
s
);
s
++
;
}
return
x
;
}
else
return
(
LPWSTR
)((
UINT
)
tolowerW
(
LOWORD
(
x
)));
}
/***********************************************************************
* CharUpperA (USER32.41)
* FIXME: handle current locale
*/
LPSTR
WINAPI
CharUpperA
(
LPSTR
x
)
{
if
(
HIWORD
(
x
))
{
LPSTR
s
=
x
;
while
(
*
s
)
{
*
s
=
toupper
(
*
s
);
s
++
;
}
return
x
;
}
return
(
LPSTR
)
toupper
((
char
)(
int
)
x
);
}
/***********************************************************************
* CharUpperBuffA (USER32.42)
* FIXME: handle current locale
*/
DWORD
WINAPI
CharUpperBuffA
(
LPSTR
str
,
DWORD
len
)
{
DWORD
ret
=
len
;
if
(
!
str
)
return
0
;
/* YES */
for
(;
len
;
len
--
,
str
++
)
*
str
=
toupper
(
*
str
);
return
ret
;
}
/***********************************************************************
* CharUpperBuffW (USER32.43)
* FIXME: handle current locale
*/
DWORD
WINAPI
CharUpperBuffW
(
LPWSTR
str
,
DWORD
len
)
{
DWORD
ret
=
len
;
if
(
!
str
)
return
0
;
/* YES */
for
(;
len
;
len
--
,
str
++
)
*
str
=
toupperW
(
*
str
);
return
ret
;
}
/***********************************************************************
* CharUpperW (USER32.44)
* FIXME: handle current locale
*/
LPWSTR
WINAPI
CharUpperW
(
LPWSTR
x
)
{
if
(
HIWORD
(
x
))
{
LPWSTR
s
=
x
;
while
(
*
s
)
{
*
s
=
toupperW
(
*
s
);
s
++
;
}
return
x
;
}
else
return
(
LPWSTR
)((
UINT
)
toupperW
(
LOWORD
(
x
)));
}
/***********************************************************************
* IsCharAlphaA (USER.433) (USER32.331)
* FIXME: handle current locale
*/
...
...
misc/main.c
View file @
dcd247e5
...
...
@@ -16,7 +16,12 @@
# include <malloc.h>
#endif
#include "windef.h"
#include "winbase.h"
#include "ntddk.h"
#include "winnls.h"
#include "winerror.h"
#include "winsock.h"
#include "heap.h"
#include "msdos.h"
...
...
@@ -24,12 +29,7 @@
#include "debugtools.h"
#include "debugdefs.h"
#include "module.h"
#include "winnls.h"
#include "windef.h"
#include "wingdi.h"
#include "wine/winuser16.h"
#include "tweak.h"
#include "winerror.h"
/***********************************************************************
...
...
@@ -121,14 +121,14 @@ void MAIN_ParseDebugOptions( const char *arg )
while
((
s2
=
strchr
(
s
,
':'
)))
{
c
=
*
s2
;
*
s2
=
'\0'
;
*
((
*
output
)
+
i
)
=
CharUpperA
(
strdup
(
s
));
*
((
*
output
)
+
i
)
=
_strupr
(
strdup
(
s
));
*
s2
=
c
;
s
=
s2
+
1
;
i
++
;
}
c
=
*
(
options
+
l
);
*
(
options
+
l
)
=
'\0'
;
*
((
*
output
)
+
i
)
=
CharUpperA
(
strdup
(
s
));
*
((
*
output
)
+
i
)
=
_strupr
(
strdup
(
s
));
*
(
options
+
l
)
=
c
;
*
((
*
output
)
+
i
+
1
)
=
NULL
;
}
...
...
msdos/int21.c
View file @
dcd247e5
...
...
@@ -20,6 +20,7 @@
#include <ctype.h>
#include "windef.h"
#include "winbase.h"
#include "ntddk.h"
#include "wingdi.h"
#include "winuser.h"
/* SW_NORMAL */
#include "wine/winbase16.h"
...
...
@@ -2049,12 +2050,15 @@ void WINAPI DOS3Call( CONTEXT86 *context )
break
;
case
0x21
:
TRACE
(
"
\t
convert string to uppercase with length
\n
"
);
CharUpperBuffA
(
(
LPSTR
)
CTX_SEG_OFF_TO_LIN
(
context
,
DS_reg
(
context
),
EDX_reg
(
context
)),
CX_reg
(
context
)
);
{
char
*
ptr
=
(
char
*
)
CTX_SEG_OFF_TO_LIN
(
context
,
DS_reg
(
context
),
EDX_reg
(
context
));
WORD
len
=
CX_reg
(
context
);
while
(
len
--
)
{
*
ptr
=
toupper
(
*
ptr
);
ptr
++
;
}
}
break
;
case
0x22
:
TRACE
(
"
\t
Convert ASCIIZ string to uppercase
\n
"
);
CharUpperA
(
(
LPSTR
)
CTX_SEG_OFF_TO_LIN
(
context
,
DS_reg
(
context
),
EDX_reg
(
context
))
);
_strupr
(
(
LPSTR
)
CTX_SEG_OFF_TO_LIN
(
context
,
DS_reg
(
context
),
EDX_reg
(
context
))
);
break
;
default:
TRACE
(
"
\t
unimplemented function %d
\n
"
,
AL_reg
(
context
));
...
...
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