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
072dfb57
Commit
072dfb57
authored
Sep 25, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed inclusion of wine/winestring.h from winbase.h and added it to
the C files that need it.
parent
770eb51e
Hide whitespace changes
Inline
Side-by-side
Showing
68 changed files
with
112 additions
and
49 deletions
+112
-49
listbox.c
controls/listbox.c
+4
-4
menu.c
controls/menu.c
+1
-0
registry.c
dlls/advapi32/registry.c
+1
-0
security.c
dlls/advapi32/security.c
+1
-0
service.c
dlls/advapi32/service.c
+1
-0
datetime.c
dlls/comctl32/datetime.c
+1
-0
header.c
dlls/comctl32/header.c
+1
-0
rebar.c
dlls/comctl32/rebar.c
+5
-2
status.c
dlls/comctl32/status.c
+1
-0
toolbar.c
dlls/comctl32/toolbar.c
+1
-0
treeview.c
dlls/comctl32/treeview.c
+1
-0
filedlg.c
dlls/commdlg/filedlg.c
+1
-0
filedlg95.c
dlls/commdlg/filedlg95.c
+1
-0
filedlgbrowser.c
dlls/commdlg/filedlgbrowser.c
+2
-2
finddlg32.c
dlls/commdlg/finddlg32.c
+1
-0
fontdlg.c
dlls/commdlg/fontdlg.c
+1
-0
mbstring.c
dlls/crtdll/mbstring.c
+1
-0
format_msg.c
dlls/kernel/format_msg.c
+1
-0
wnet.c
dlls/mpr/wnet.c
+1
-0
driver.c
dlls/msacm/driver.c
+1
-0
filter.c
dlls/msacm/filter.c
+1
-0
format.c
dlls/msacm/format.c
+1
-0
internal.c
dlls/msacm/internal.c
+1
-1
msvideo_main.c
dlls/msvideo/msvideo_main.c
+2
-2
clipboard.c
dlls/ole32/clipboard.c
+1
-0
compobj.c
dlls/ole32/compobj.c
+1
-0
filemoniker.c
dlls/ole32/filemoniker.c
+1
-0
ole2.c
dlls/ole32/ole2.c
+2
-0
storage32.c
dlls/ole32/storage32.c
+1
-0
typelib.c
dlls/oleaut32/typelib.c
+1
-0
shellpath.c
dlls/shell32/shellpath.c
+1
-0
shv_item_cmenu.c
dlls/shell32/shv_item_cmenu.c
+2
-2
path.c
dlls/shlwapi/path.c
+1
-0
graphics.c
dlls/ttydrv/graphics.c
+1
-0
info.c
dlls/version/info.c
+1
-1
joystick.c
dlls/winmm/joystick.c
+1
-0
mmsystem.c
dlls/winmm/mmsystem.c
+1
-0
dos_fs.c
files/dos_fs.c
+14
-7
profile.c
files/profile.c
+1
-0
text.c
graphics/metafiledrv/text.c
+2
-1
font.c
graphics/win16drv/font.c
+2
-1
text.c
graphics/win16drv/text.c
+2
-1
winbase.h
include/winbase.h
+0
-1
module.c
loader/module.c
+1
-0
convert.c
loader/ne/convert.c
+1
-0
resource.c
loader/ne/resource.c
+2
-2
atom.c
memory/atom.c
+3
-2
environ.c
memory/environ.c
+2
-2
registry.c
memory/registry.c
+1
-0
virtual.c
memory/virtual.c
+1
-0
cdrom.c
misc/cdrom.c
+1
-0
comm.c
misc/comm.c
+4
-4
cpu.c
misc/cpu.c
+9
-9
main.c
misc/main.c
+4
-4
version.c
misc/version.c
+1
-0
ole2nls.c
ole/ole2nls.c
+1
-0
event.c
scheduler/event.c
+1
-0
mutex.c
scheduler/mutex.c
+1
-0
semaphore.c
scheduler/semaphore.c
+1
-0
timer.c
scheduler/timer.c
+1
-0
console.c
win32/console.c
+1
-0
clipboard.c
windows/clipboard.c
+1
-0
defwnd.c
windows/defwnd.c
+1
-0
dialog.c
windows/dialog.c
+1
-0
input.c
windows/input.c
+1
-0
msgbox.c
windows/msgbox.c
+1
-0
sysparams.c
windows/sysparams.c
+1
-0
user.c
windows/user.c
+1
-1
No files found.
controls/listbox.c
View file @
072dfb57
...
...
@@ -843,20 +843,20 @@ static INT LISTBOX_FindString( WND *wnd, LB_DESCR *descr, INT start,
#define CHECK_DRIVE(item) \
if ((item)->str[0] == '[') \
{ \
if (!
lstrncmpiA
( str, (item)->str+1, len )) return i; \
if (((item)->str[1] == '-') && !
lstrncmpiA
(str,(item)->str+2,len)) \
if (!
strncasecmp
( str, (item)->str+1, len )) return i; \
if (((item)->str[1] == '-') && !
strncasecmp
(str,(item)->str+2,len)) \
return i; \
}
INT
len
=
strlen
(
str
);
for
(
i
=
start
+
1
;
i
<
descr
->
nb_items
;
i
++
,
item
++
)
{
if
(
!
lstrncmpiA
(
str
,
item
->
str
,
len
))
return
i
;
if
(
!
strncasecmp
(
str
,
item
->
str
,
len
))
return
i
;
CHECK_DRIVE
(
item
);
}
for
(
i
=
0
,
item
=
descr
->
items
;
i
<=
start
;
i
++
,
item
++
)
{
if
(
!
lstrncmpiA
(
str
,
item
->
str
,
len
))
return
i
;
if
(
!
strncasecmp
(
str
,
item
->
str
,
len
))
return
i
;
CHECK_DRIVE
(
item
);
}
#undef CHECK_DRIVE
...
...
controls/menu.c
View file @
072dfb57
...
...
@@ -21,6 +21,7 @@
#include "wingdi.h"
#include "wine/winbase16.h"
#include "wine/winuser16.h"
#include "wine/winestring.h"
#include "win.h"
#include "task.h"
#include "heap.h"
...
...
dlls/advapi32/registry.c
View file @
072dfb57
...
...
@@ -21,6 +21,7 @@
#include "winerror.h"
#include "wine/winbase16.h"
#include "wine/unicode.h"
#include "wine/winestring.h"
#include "heap.h"
#include "server.h"
#include "debugtools.h"
...
...
dlls/advapi32/security.c
View file @
072dfb57
...
...
@@ -6,6 +6,7 @@
#include "windef.h"
#include "winerror.h"
#include "wine/winestring.h"
#include "heap.h"
#include "ntddk.h"
#include "ntsecapi.h"
...
...
dlls/advapi32/service.c
View file @
072dfb57
...
...
@@ -11,6 +11,7 @@
#include "winerror.h"
#include "winreg.h"
#include "wine/unicode.h"
#include "wine/winestring.h"
#include "heap.h"
#include "debugtools.h"
...
...
dlls/comctl32/datetime.c
View file @
072dfb57
...
...
@@ -18,6 +18,7 @@
#include "winbase.h"
#include "wingdi.h"
#include "wine/winestring.h"
#include "commctrl.h"
#include "debugtools.h"
...
...
dlls/comctl32/header.c
View file @
072dfb57
...
...
@@ -23,6 +23,7 @@
#include "winbase.h"
#include "wine/unicode.h"
#include "wine/winestring.h"
#include "commctrl.h"
#include "debugtools.h"
...
...
dlls/comctl32/rebar.c
View file @
072dfb57
...
...
@@ -23,6 +23,7 @@
#include "winbase.h"
#include "wingdi.h"
#include "wine/unicode.h"
#include "wine/winestring.h"
#include "commctrl.h"
#include "debugtools.h"
...
...
@@ -1512,8 +1513,10 @@ REBAR_SetBarInfo (HWND hwnd, WPARAM wParam, LPARAM lParam)
if
(
lpInfo
->
fMask
&
RBIM_IMAGELIST
)
{
infoPtr
->
himl
=
lpInfo
->
himl
;
if
(
infoPtr
->
himl
)
{
ImageList_GetIconSize
(
infoPtr
->
himl
,
&
infoPtr
->
imageSize
.
cx
,
&
infoPtr
->
imageSize
.
cy
);
INT
cx
,
cy
;
ImageList_GetIconSize
(
infoPtr
->
himl
,
&
cx
,
&
cy
);
infoPtr
->
imageSize
.
cx
=
cx
;
infoPtr
->
imageSize
.
cy
=
cy
;
}
else
{
infoPtr
->
imageSize
.
cx
=
0
;
...
...
dlls/comctl32/status.c
View file @
072dfb57
...
...
@@ -12,6 +12,7 @@
#include "winbase.h"
#include "wine/unicode.h"
#include "wine/winestring.h"
#include "commctrl.h"
#include "debugtools.h"
...
...
dlls/comctl32/toolbar.c
View file @
072dfb57
...
...
@@ -34,6 +34,7 @@
#include "wingdi.h"
#include "winuser.h"
#include "wine/unicode.h"
#include "wine/winestring.h"
#include "commctrl.h"
#include "imagelist.h"
#include "cache.h"
...
...
dlls/comctl32/treeview.c
View file @
072dfb57
...
...
@@ -29,6 +29,7 @@
#include <limits.h>
#include "winbase.h"
#include "wingdi.h"
#include "wine/winestring.h"
#include "commctrl.h"
#include "comctl32.h"
#include "debugtools.h"
...
...
dlls/commdlg/filedlg.c
View file @
072dfb57
...
...
@@ -14,6 +14,7 @@
#include "wine/winbase16.h"
#include "wine/winuser16.h"
#include "wine/unicode.h"
#include "wine/winestring.h"
#include "ldt.h"
#include "heap.h"
#include "commdlg.h"
...
...
dlls/commdlg/filedlg95.c
View file @
072dfb57
...
...
@@ -26,6 +26,7 @@
#include "winbase.h"
#include "ntddk.h"
#include "wine/winestring.h"
#include "ldt.h"
#include "heap.h"
#include "commdlg.h"
...
...
dlls/commdlg/filedlgbrowser.c
View file @
072dfb57
...
...
@@ -10,14 +10,14 @@
#include "windef.h"
#include "wingdi.h"
#include "winuser.h"
#include "wine/winestring.h"
#include "heap.h"
#include "shlguid.h"
#include "wine/obj_dataobject.h"
#include "debugtools.h"
#include "cdlg.h"
#include "wine/undocshell.h"
DEFAULT_DEBUG_CHANNEL
(
commdlg
)
DEFAULT_DEBUG_CHANNEL
(
commdlg
)
;
/**************************************************************************
* Structure
...
...
dlls/commdlg/finddlg32.c
View file @
072dfb57
...
...
@@ -9,6 +9,7 @@
#include "windef.h"
#include "wingdi.h"
#include "winuser.h"
#include "wine/winestring.h"
#include "commdlg.h"
#include "cderr.h"
#include "dlgs.h"
...
...
dlls/commdlg/fontdlg.c
View file @
072dfb57
...
...
@@ -14,6 +14,7 @@
#include "wingdi.h"
#include "wine/winbase16.h"
#include "wine/winuser16.h"
#include "wine/winestring.h"
#include "ldt.h"
#include "heap.h"
#include "commdlg.h"
...
...
dlls/crtdll/mbstring.c
View file @
072dfb57
...
...
@@ -6,6 +6,7 @@
#include "windef.h"
#include "winbase.h"
#include "winnls.h"
#include "crtdll.h"
...
...
dlls/kernel/format_msg.c
View file @
072dfb57
...
...
@@ -14,6 +14,7 @@
#include "winerror.h"
#include "winnls.h"
#include "wine/unicode.h"
#include "wine/winestring.h"
#include "heap.h"
#include "debugtools.h"
...
...
dlls/mpr/wnet.c
View file @
072dfb57
...
...
@@ -9,6 +9,7 @@
#include <unistd.h>
#include "winbase.h"
#include "wine/winestring.h"
#include "winnetwk.h"
#include "drive.h"
#include "heap.h"
...
...
dlls/msacm/driver.c
View file @
072dfb57
...
...
@@ -14,6 +14,7 @@
#include "windef.h"
#include "wingdi.h"
#include "winuser.h"
#include "wine/winestring.h"
#include "debugtools.h"
#include "heap.h"
#include "mmsystem.h"
...
...
dlls/msacm/filter.c
View file @
072dfb57
...
...
@@ -8,6 +8,7 @@
#include "winbase.h"
#include "winerror.h"
#include "wine/winestring.h"
#include "mmsystem.h"
#include "msacm.h"
#include "msacmdrv.h"
...
...
dlls/msacm/format.c
View file @
072dfb57
...
...
@@ -12,6 +12,7 @@
#include "windef.h"
#include "wingdi.h"
#include "winuser.h"
#include "wine/winestring.h"
#include "debugtools.h"
#include "mmsystem.h"
#include "msacm.h"
...
...
dlls/msacm/internal.c
View file @
072dfb57
...
...
@@ -81,7 +81,7 @@ void MSACM_RegisterAllDrivers(void)
if
(
GetPrivateProfileSectionA
(
"drivers32"
,
pszBuffer
,
dwBufferLength
,
"system.ini"
))
{
char
*
s
=
pszBuffer
;
while
(
*
s
)
{
if
(
!
lstrncmpiA
(
"MSACM."
,
s
,
6
))
{
if
(
!
strncasecmp
(
"MSACM."
,
s
,
6
))
{
char
*
s2
=
s
;
while
(
*
s2
!=
'\0'
&&
*
s2
!=
'='
)
s2
++
;
if
(
*
s2
)
{
...
...
dlls/msvideo/msvideo_main.c
View file @
072dfb57
...
...
@@ -71,7 +71,7 @@ BOOL VFWAPI ICInfo(
if
(
GetPrivateProfileStringA
(
"drivers32"
,
NULL
,
NULL
,
buf
,
2000
,
"system.ini"
))
{
char
*
s
=
buf
;
while
(
*
s
)
{
if
(
!
lstrncmpiA
(
type
,
s
,
4
))
{
if
(
!
strncasecmp
(
type
,
s
,
4
))
{
if
(
!
fccHandler
--
)
{
lpicinfo
->
fccHandler
=
mmioStringToFOURCCA
(
s
+
5
,
0
);
return
TRUE
;
...
...
@@ -280,7 +280,7 @@ HIC VFWAPI ICLocate(
if
(
GetPrivateProfileSectionA
(
"drivers32"
,
pszBuffer
,
1024
,
"system.ini"
))
{
char
*
s
=
pszBuffer
;
while
(
*
s
)
{
if
(
!
lstrncmpiA
(
type
,
s
,
5
))
{
if
(
!
strncasecmp
(
type
,
s
,
5
))
{
char
*
s2
=
s
;
while
(
*
s2
!=
'\0'
&&
*
s2
!=
'.'
)
s2
++
;
if
(
*
s2
)
{
...
...
dlls/ole32/clipboard.c
View file @
072dfb57
...
...
@@ -51,6 +51,7 @@
#include "winuser.h"
#include "winbase.h"
#include "winerror.h"
#include "wine/winestring.h"
#include "ole2.h"
#include "debugtools.h"
#include "olestd.h"
...
...
dlls/ole32/compobj.c
View file @
072dfb57
...
...
@@ -18,6 +18,7 @@
#include "wingdi.h"
#include "wine/winbase16.h"
#include "winerror.h"
#include "wine/winestring.h"
#include "wownt32.h"
#include "ole2ver.h"
#include "debugtools.h"
...
...
dlls/ole32/filemoniker.c
View file @
072dfb57
...
...
@@ -8,6 +8,7 @@
#include "winbase.h"
#include "winerror.h"
#include "wine/unicode.h"
#include "wine/winestring.h"
#include "debugtools.h"
#include "objbase.h"
#include "wine/obj_storage.h"
...
...
dlls/ole32/ole2.c
View file @
072dfb57
...
...
@@ -12,6 +12,7 @@
#include <string.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "winerror.h"
...
...
@@ -20,6 +21,7 @@
#include "wine/obj_clientserver.h"
#include "wine/winbase16.h"
#include "wine/wingdi16.h"
#include "wine/winestring.h"
#include "debugtools.h"
#include "ole2ver.h"
#include "winreg.h"
...
...
dlls/ole32/storage32.c
View file @
072dfb57
...
...
@@ -18,6 +18,7 @@
#include "winbase.h"
/* for lstrlenW() and the likes */
#include "winnls.h"
#include "wine/unicode.h"
#include "wine/winestring.h"
#include "debugtools.h"
#include "storage32.h"
...
...
dlls/oleaut32/typelib.c
View file @
072dfb57
...
...
@@ -31,6 +31,7 @@
#include "winerror.h"
#include "winreg.h"
/* for HKEY_LOCAL_MACHINE */
#include "winnls.h"
/* for PRIMARYLANGID */
#include "wine/winestring.h"
#include "heap.h"
#include "wine/obj_base.h"
#include "debugtools.h"
...
...
dlls/shell32/shellpath.c
View file @
072dfb57
...
...
@@ -14,6 +14,7 @@
#include "shell32_main.h"
#include "windef.h"
#include "options.h"
#include "wine/winestring.h"
#include "wine/undocshell.h"
#include "wine/unicode.h"
#include "shlwapi.h"
...
...
dlls/shell32/shv_item_cmenu.c
View file @
072dfb57
...
...
@@ -10,6 +10,7 @@
#include "pidl.h"
#include "shlguid.h"
#include "wine/winestring.h"
#include "wine/obj_base.h"
#include "wine/obj_contextmenu.h"
#include "wine/obj_shellbrowser.h"
...
...
@@ -18,9 +19,8 @@
#include "shell32_main.h"
#include "shellfolder.h"
#include "shell.h"
/* DROPFILESTRUCT */
DEFAULT_DEBUG_CHANNEL
(
shell
)
DEFAULT_DEBUG_CHANNEL
(
shell
)
;
/**************************************************************************
* IContextMenu Implementation
...
...
dlls/shlwapi/path.c
View file @
072dfb57
...
...
@@ -8,6 +8,7 @@
#include "winerror.h"
#include "wine/unicode.h"
#include "wine/undocshell.h"
#include "wine/winestring.h"
#include "shlwapi.h"
#include "debugtools.h"
...
...
dlls/ttydrv/graphics.c
View file @
072dfb57
...
...
@@ -6,6 +6,7 @@
#include "config.h"
#include "wine/winestring.h"
#include "dc.h"
#include "heap.h"
#include "debugtools.h"
...
...
dlls/version/info.c
View file @
072dfb57
...
...
@@ -384,7 +384,7 @@ static VS_VERSION_INFO_STRUCT16 *VersionInfo16_FindChild( VS_VERSION_INFO_STRUCT
while
(
(
DWORD
)
child
<
(
DWORD
)
info
+
info
->
wLength
)
{
if
(
!
lstrncmpiA
(
child
->
szKey
,
szKey
,
cbKey
)
)
if
(
!
strncasecmp
(
child
->
szKey
,
szKey
,
cbKey
)
)
return
child
;
if
(
!
(
child
->
wLength
))
return
NULL
;
...
...
dlls/winmm/joystick.c
View file @
072dfb57
...
...
@@ -18,6 +18,7 @@
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "wine/winestring.h"
#include "winemm.h"
#include "debugtools.h"
...
...
dlls/winmm/mmsystem.c
View file @
072dfb57
...
...
@@ -24,6 +24,7 @@
#include "wingdi.h"
#include "wine/winbase16.h"
#include "wine/winuser16.h"
#include "wine/winestring.h"
#include "heap.h"
#include "winemm.h"
#include "syslevel.h"
...
...
files/dos_fs.c
View file @
072dfb57
...
...
@@ -25,6 +25,7 @@
#include "ntddk.h"
#include "wine/winbase16.h"
#include "wine/unicode.h"
#include "wine/winestring.h"
#include "winerror.h"
#include "drive.h"
#include "file.h"
...
...
@@ -609,7 +610,7 @@ BOOL DOSFS_FindUnixName( LPCSTR path, LPCSTR name, LPSTR long_buf,
}
else
{
if
(
!
lstrncmpiA
(
long_name
,
name
,
len
))
break
;
if
(
!
strncasecmp
(
long_name
,
name
,
len
))
break
;
}
}
if
(
dos_name
[
0
])
...
...
@@ -660,7 +661,7 @@ const DOS_DEVICE *DOSFS_GetDevice( const char *name )
for
(
i
=
0
;
i
<
sizeof
(
DOSFS_Devices
)
/
sizeof
(
DOSFS_Devices
[
0
]);
i
++
)
{
const
char
*
dev
=
DOSFS_Devices
[
i
].
name
;
if
(
!
lstrncmpiA
(
dev
,
name
,
strlen
(
dev
)
))
if
(
!
strncasecmp
(
dev
,
name
,
strlen
(
dev
)
))
{
p
=
name
+
strlen
(
dev
);
if
(
!*
p
||
(
*
p
==
'.'
))
return
&
DOSFS_Devices
[
i
];
...
...
@@ -711,7 +712,7 @@ HFILE DOSFS_OpenDevice( const char *name, DWORD access )
for
(
i
=
0
;
i
<
sizeof
(
DOSFS_Devices
)
/
sizeof
(
DOSFS_Devices
[
0
]);
i
++
)
{
const
char
*
dev
=
DOSFS_Devices
[
i
].
name
;
if
(
!
lstrncmpiA
(
dev
,
name
,
strlen
(
dev
)
))
if
(
!
strncasecmp
(
dev
,
name
,
strlen
(
dev
)
))
{
p
=
name
+
strlen
(
dev
);
if
(
!*
p
||
(
*
p
==
'.'
))
{
...
...
@@ -1606,8 +1607,11 @@ HANDLE WINAPI FindFirstFileExW(
dataW
->
ftLastWriteTime
=
dataA
.
ftLastWriteTime
;
dataW
->
nFileSizeHigh
=
dataA
.
nFileSizeHigh
;
dataW
->
nFileSizeLow
=
dataA
.
nFileSizeLow
;
lstrcpyAtoW
(
dataW
->
cFileName
,
dataA
.
cFileName
);
lstrcpyAtoW
(
dataW
->
cAlternateFileName
,
dataA
.
cAlternateFileName
);
MultiByteToWideChar
(
CP_ACP
,
0
,
dataA
.
cFileName
,
-
1
,
dataW
->
cFileName
,
sizeof
(
dataW
->
cFileName
)
/
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
dataA
.
cAlternateFileName
,
-
1
,
dataW
->
cAlternateFileName
,
sizeof
(
dataW
->
cAlternateFileName
)
/
sizeof
(
WCHAR
)
);
}
break
;
default:
...
...
@@ -1670,8 +1674,11 @@ BOOL WINAPI FindNextFileW( HANDLE handle, WIN32_FIND_DATAW *data )
data
->
ftLastWriteTime
=
dataA
.
ftLastWriteTime
;
data
->
nFileSizeHigh
=
dataA
.
nFileSizeHigh
;
data
->
nFileSizeLow
=
dataA
.
nFileSizeLow
;
lstrcpyAtoW
(
data
->
cFileName
,
dataA
.
cFileName
);
lstrcpyAtoW
(
data
->
cAlternateFileName
,
dataA
.
cAlternateFileName
);
MultiByteToWideChar
(
CP_ACP
,
0
,
dataA
.
cFileName
,
-
1
,
data
->
cFileName
,
sizeof
(
data
->
cFileName
)
/
sizeof
(
WCHAR
)
);
MultiByteToWideChar
(
CP_ACP
,
0
,
dataA
.
cAlternateFileName
,
-
1
,
data
->
cAlternateFileName
,
sizeof
(
data
->
cAlternateFileName
)
/
sizeof
(
WCHAR
)
);
return
TRUE
;
}
...
...
files/profile.c
View file @
072dfb57
...
...
@@ -17,6 +17,7 @@
#include "winbase.h"
#include "winerror.h"
#include "wine/winbase16.h"
#include "wine/winestring.h"
#include "windef.h"
#include "winnls.h"
#include "winreg.h"
...
...
graphics/metafiledrv/text.c
View file @
072dfb57
...
...
@@ -8,11 +8,12 @@
#include <string.h>
#include "windef.h"
#include "wine/winestring.h"
#include "metafiledrv.h"
#include "debugtools.h"
#include "heap.h"
DEFAULT_DEBUG_CHANNEL
(
metafile
)
DEFAULT_DEBUG_CHANNEL
(
metafile
)
;
/******************************************************************
...
...
graphics/win16drv/font.c
View file @
072dfb57
...
...
@@ -7,6 +7,7 @@
#include <string.h>
#include "wine/winbase16.h"
#include "wine/winestring.h"
#include "win16drv.h"
#include "module.h"
#include "font.h"
...
...
@@ -14,7 +15,7 @@
#include "dc.h"
#include "debugtools.h"
DEFAULT_DEBUG_CHANNEL
(
win16drv
)
DEFAULT_DEBUG_CHANNEL
(
win16drv
)
;
/***********************************************************************
...
...
graphics/win16drv/text.c
View file @
072dfb57
...
...
@@ -11,8 +11,9 @@
#include "gdi.h"
#include "debugtools.h"
#include "winbase.h"
#include "wine/winestring.h"
DEFAULT_DEBUG_CHANNEL
(
win16drv
)
DEFAULT_DEBUG_CHANNEL
(
win16drv
)
;
/***********************************************************************
* WIN16DRV_ExtTextOut
...
...
include/winbase.h
View file @
072dfb57
...
...
@@ -3,7 +3,6 @@
#include "basetsd.h"
#include "winnt.h"
#include "wine/winestring.h"
#include "pshpack1.h"
...
...
loader/module.c
View file @
072dfb57
...
...
@@ -12,6 +12,7 @@
#include <sys/types.h>
#include <unistd.h>
#include "wine/winbase16.h"
#include "wine/winestring.h"
#include "winerror.h"
#include "heap.h"
#include "neexe.h"
...
...
loader/ne/convert.c
View file @
072dfb57
...
...
@@ -9,6 +9,7 @@
#include "wingdi.h"
#include "wine/winuser16.h"
#include "wine/unicode.h"
#include "wine/winestring.h"
#include "module.h"
#include "debugtools.h"
...
...
loader/ne/resource.c
View file @
072dfb57
...
...
@@ -117,7 +117,7 @@ NE_TYPEINFO *NE_FindTypeSection( LPBYTE pResTab,
if
(
!
(
pTypeInfo
->
type_id
&
0x8000
))
{
BYTE
*
p
=
pResTab
+
pTypeInfo
->
type_id
;
if
((
*
p
==
len
)
&&
!
lstrncmpiA
(
p
+
1
,
str
,
len
))
if
((
*
p
==
len
)
&&
!
strncasecmp
(
p
+
1
,
str
,
len
))
{
TRACE
(
" Found type '%s'
\n
"
,
str
);
return
pTypeInfo
;
...
...
@@ -164,7 +164,7 @@ NE_NAMEINFO *NE_FindResourceFromType( LPBYTE pResTab,
{
if
(
pNameInfo
->
id
&
0x8000
)
continue
;
p
=
pResTab
+
pNameInfo
->
id
;
if
((
*
p
==
len
)
&&
!
lstrncmpiA
(
p
+
1
,
str
,
len
))
if
((
*
p
==
len
)
&&
!
strncasecmp
(
p
+
1
,
str
,
len
))
return
pNameInfo
;
}
}
...
...
memory/atom.c
View file @
072dfb57
...
...
@@ -17,6 +17,7 @@
#include <ctype.h>
#include "windef.h"
#include "winnls.h"
#include "wine/winbase16.h"
#include "wine/unicode.h"
#include "winerror.h"
...
...
@@ -258,7 +259,7 @@ ATOM WINAPI AddAtom16( LPCSTR str )
{
entryPtr
=
ATOM_MakePtr
(
entry
);
if
((
entryPtr
->
length
==
len
)
&&
(
!
lstrncmpiA
(
entryPtr
->
str
,
buffer
,
len
)))
(
!
strncasecmp
(
entryPtr
->
str
,
buffer
,
len
)))
{
entryPtr
->
refCount
++
;
TRACE
(
"-- existing 0x%x
\n
"
,
entry
);
...
...
@@ -347,7 +348,7 @@ ATOM WINAPI FindAtom16( LPCSTR str )
{
ATOMENTRY
*
entryPtr
=
ATOM_MakePtr
(
entry
);
if
((
entryPtr
->
length
==
len
)
&&
(
!
lstrncmpiA
(
entryPtr
->
str
,
str
,
len
)))
(
!
strncasecmp
(
entryPtr
->
str
,
str
,
len
)))
{
TRACE
(
"-- found %x
\n
"
,
entry
);
return
HANDLETOATOM
(
entry
);
...
...
memory/environ.c
View file @
072dfb57
...
...
@@ -95,7 +95,7 @@ static LPCSTR ENV_FindVariable( LPCSTR env, LPCSTR name, INT len )
{
while
(
*
env
)
{
if
(
!
lstrncmpiA
(
name
,
env
,
len
)
&&
(
env
[
len
]
==
'='
))
if
(
!
strncasecmp
(
name
,
env
,
len
)
&&
(
env
[
len
]
==
'='
))
return
env
+
len
+
1
;
env
+=
strlen
(
env
)
+
1
;
}
...
...
@@ -284,7 +284,7 @@ BOOL WINAPI SetEnvironmentVariableA( LPCSTR name, LPCSTR value )
len
=
strlen
(
name
);
while
(
*
p
)
{
if
(
!
lstrncmpiA
(
name
,
p
,
len
)
&&
(
p
[
len
]
==
'='
))
break
;
if
(
!
strncasecmp
(
name
,
p
,
len
)
&&
(
p
[
len
]
==
'='
))
break
;
p
+=
strlen
(
p
)
+
1
;
}
if
(
!
value
&&
!*
p
)
goto
done
;
/* Value to remove doesn't exist */
...
...
memory/registry.c
View file @
072dfb57
...
...
@@ -21,6 +21,7 @@
#include "winerror.h"
#include "wine/winbase16.h"
#include "wine/unicode.h"
#include "wine/winestring.h"
#include "heap.h"
#include "server.h"
#include "debugtools.h"
...
...
memory/virtual.c
View file @
072dfb57
...
...
@@ -20,6 +20,7 @@
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
#include "winnls.h"
#include "winbase.h"
#include "wine/exception.h"
#include "wine/unicode.h"
...
...
misc/cdrom.c
View file @
072dfb57
...
...
@@ -17,6 +17,7 @@
#include "drive.h"
#include "debugtools.h"
#include "winbase.h"
#include "wine/winestring.h"
DEFAULT_DEBUG_CHANNEL
(
cdrom
);
...
...
misc/comm.c
View file @
072dfb57
...
...
@@ -359,7 +359,7 @@ BOOL16 WINAPI BuildCommDCB16(LPCSTR device, LPDCB16 lpdcb)
TRACE
(
"(%s), ptr %p
\n
"
,
device
,
lpdcb
);
if
(
!
lstrncmpiA
(
device
,
"COM"
,
3
))
{
if
(
!
strncasecmp
(
device
,
"COM"
,
3
))
{
port
=
device
[
3
]
-
'0'
;
...
...
@@ -456,7 +456,7 @@ INT16 WINAPI OpenComm16(LPCSTR device,UINT16 cbInQueue,UINT16 cbOutQueue)
if
(
port
--
==
0
)
ERR
(
"BUG ! COM0 or LPT0 don't exist !
\n
"
);
if
(
!
lstrncmpiA
(
device
,
"COM"
,
3
))
{
if
(
!
strncasecmp
(
device
,
"COM"
,
3
))
{
TRACE
(
"%s = %s
\n
"
,
device
,
COM
[
port
].
devicename
);
...
...
@@ -519,7 +519,7 @@ INT16 WINAPI OpenComm16(LPCSTR device,UINT16 cbInQueue,UINT16 cbOutQueue)
}
}
else
if
(
!
lstrncmpiA
(
device
,
"LPT"
,
3
))
{
if
(
!
strncasecmp
(
device
,
"LPT"
,
3
))
{
if
(
!
ValidLPTPort
(
port
))
return
IE_BADID
;
...
...
@@ -1478,7 +1478,7 @@ BOOL WINAPI BuildCommDCBAndTimeoutsA(LPCSTR device, LPDCB lpdcb,
TRACE
(
"(%s,%p,%p)
\n
"
,
device
,
lpdcb
,
lptimeouts
);
if
(
!
lstrncmpiA
(
device
,
"COM"
,
3
))
{
if
(
!
strncasecmp
(
device
,
"COM"
,
3
))
{
port
=
device
[
3
]
-
'0'
;
if
(
port
--==
0
)
{
ERR
(
"BUG! COM0 can't exists!.
\n
"
);
...
...
misc/cpu.c
View file @
072dfb57
...
...
@@ -102,7 +102,7 @@ VOID WINAPI GetSystemInfo(
*
s
=
'\0'
;
/* 2.1 method */
if
(
!
lstrncmpiA
(
line
,
"cpu family"
,
strlen
(
"cpu family"
)))
{
if
(
!
strncasecmp
(
line
,
"cpu family"
,
strlen
(
"cpu family"
)))
{
if
(
isdigit
(
value
[
0
]))
{
switch
(
value
[
0
]
-
'0'
)
{
case
3
:
cachedsi
.
dwProcessorType
=
PROCESSOR_INTEL_386
;
...
...
@@ -128,7 +128,7 @@ VOID WINAPI GetSystemInfo(
continue
;
}
/* old 2.0 method */
if
(
!
lstrncmpiA
(
line
,
"cpu"
,
strlen
(
"cpu"
)))
{
if
(
!
strncasecmp
(
line
,
"cpu"
,
strlen
(
"cpu"
)))
{
if
(
isdigit
(
value
[
0
])
&&
value
[
1
]
==
'8'
&&
value
[
2
]
==
'6'
&&
value
[
3
]
==
0
)
{
...
...
@@ -155,19 +155,19 @@ VOID WINAPI GetSystemInfo(
RegSetValueExA
(
xhkey
,
"Identifier"
,
0
,
REG_SZ
,
buf
,
strlen
(
buf
));
continue
;
}
if
(
!
lstrncmpiA
(
line
,
"fdiv_bug"
,
strlen
(
"fdiv_bug"
)))
{
if
(
!
lstrncmpiA
(
value
,
"yes"
,
3
))
if
(
!
strncasecmp
(
line
,
"fdiv_bug"
,
strlen
(
"fdiv_bug"
)))
{
if
(
!
strncasecmp
(
value
,
"yes"
,
3
))
PF
[
PF_FLOATING_POINT_PRECISION_ERRATA
]
=
TRUE
;
continue
;
}
if
(
!
lstrncmpiA
(
line
,
"fpu"
,
strlen
(
"fpu"
)))
{
if
(
!
lstrncmpiA
(
value
,
"no"
,
2
))
if
(
!
strncasecmp
(
line
,
"fpu"
,
strlen
(
"fpu"
)))
{
if
(
!
strncasecmp
(
value
,
"no"
,
2
))
PF
[
PF_FLOATING_POINT_EMULATED
]
=
TRUE
;
continue
;
}
if
(
!
lstrncmpiA
(
line
,
"processor"
,
strlen
(
"processor"
)))
{
if
(
!
strncasecmp
(
line
,
"processor"
,
strlen
(
"processor"
)))
{
/* processor number counts up...*/
int
x
;
...
...
@@ -183,13 +183,13 @@ VOID WINAPI GetSystemInfo(
RegCloseKey
(
xhkey
);
RegCreateKey16
(
hkey
,
buf
,
&
xhkey
);
}
if
(
!
lstrncmpiA
(
line
,
"stepping"
,
strlen
(
"stepping"
)))
{
if
(
!
strncasecmp
(
line
,
"stepping"
,
strlen
(
"stepping"
)))
{
int
x
;
if
(
sscanf
(
value
,
"%d"
,
&
x
))
cachedsi
.
wProcessorRevision
=
x
;
}
if
(
!
lstrncmpiA
(
line
,
"flags"
,
strlen
(
"flags"
)))
{
if
(
!
strncasecmp
(
line
,
"flags"
,
strlen
(
"flags"
)))
{
if
(
strstr
(
value
,
"cx8"
))
PF
[
PF_COMPARE_EXCHANGE_DOUBLE
]
=
TRUE
;
if
(
strstr
(
value
,
"mmx"
))
...
...
misc/main.c
View file @
072dfb57
...
...
@@ -61,7 +61,7 @@ void MAIN_ParseDebugOptions( const char *arg )
int
j
;
for
(
j
=
0
;
j
<
DEBUG_CLASS_COUNT
;
j
++
)
if
(
!
lstrncmpiA
(
options
,
debug_cl_name
[
j
],
strlen
(
debug_cl_name
[
j
])))
if
(
!
strncasecmp
(
options
,
debug_cl_name
[
j
],
strlen
(
debug_cl_name
[
j
])))
break
;
if
(
j
==
DEBUG_CLASS_COUNT
)
goto
error
;
...
...
@@ -78,7 +78,7 @@ void MAIN_ParseDebugOptions( const char *arg )
else
l
=
strlen
(
options
);
if
(
!
lstrncmpiA
(
options
+
1
,
"all"
,
l
-
1
))
if
(
!
strncasecmp
(
options
+
1
,
"all"
,
l
-
1
))
{
int
i
,
j
;
for
(
i
=
0
;
i
<
DEBUG_CHANNEL_COUNT
;
i
++
)
...
...
@@ -86,8 +86,8 @@ void MAIN_ParseDebugOptions( const char *arg )
if
(
cls
==
-
1
||
cls
==
j
)
__SET_DEBUGGING
(
j
,
debug_channels
[
i
],
(
*
options
==
'+'
)
);
}
else
if
(
!
lstrncmpiA
(
options
+
1
,
"relay="
,
6
)
||
!
lstrncmpiA
(
options
+
1
,
"snoop="
,
6
))
else
if
(
!
strncasecmp
(
options
+
1
,
"relay="
,
6
)
||
!
strncasecmp
(
options
+
1
,
"snoop="
,
6
))
{
int
i
,
j
;
char
*
s
,
*
s2
,
***
output
,
c
;
...
...
misc/version.c
View file @
072dfb57
...
...
@@ -15,6 +15,7 @@
#include "wingdi.h"
#include "winuser.h"
#include "wine/winbase16.h"
#include "wine/winestring.h"
#include "process.h"
#include "options.h"
#include "debugtools.h"
...
...
ole/ole2nls.c
View file @
072dfb57
...
...
@@ -15,6 +15,7 @@
#include "wingdi.h"
#include "winuser.h"
#include "wine/unicode.h"
#include "wine/winestring.h"
#include "heap.h"
#include "options.h"
#include "winver.h"
...
...
scheduler/event.c
View file @
072dfb57
...
...
@@ -7,6 +7,7 @@
#include <assert.h>
#include <string.h>
#include "winerror.h"
#include "winnls.h"
#include "wine/unicode.h"
#include "syslevel.h"
#include "server.h"
...
...
scheduler/mutex.c
View file @
072dfb57
...
...
@@ -7,6 +7,7 @@
#include <assert.h>
#include <string.h>
#include "winerror.h"
#include "winnls.h"
#include "wine/unicode.h"
#include "server.h"
...
...
scheduler/semaphore.c
View file @
072dfb57
...
...
@@ -7,6 +7,7 @@
#include <assert.h>
#include <string.h>
#include "winerror.h"
#include "winnls.h"
#include "wine/unicode.h"
#include "server.h"
...
...
scheduler/timer.c
View file @
072dfb57
...
...
@@ -7,6 +7,7 @@
#include <assert.h>
#include <string.h>
#include "winerror.h"
#include "winnls.h"
#include "wine/unicode.h"
#include "file.h"
/* for FILETIME routines */
#include "server.h"
...
...
win32/console.c
View file @
072dfb57
...
...
@@ -39,6 +39,7 @@
#include "windef.h"
#include "wingdi.h"
#include "wine/winuser16.h"
#include "wine/winestring.h"
#include "wine/keyboard16.h"
#include "thread.h"
#include "file.h"
...
...
windows/clipboard.c
View file @
072dfb57
...
...
@@ -28,6 +28,7 @@
#include "winuser.h"
#include "wine/winuser16.h"
#include "wine/winbase16.h"
#include "wine/winestring.h"
#include "heap.h"
#include "message.h"
#include "task.h"
...
...
windows/defwnd.c
View file @
072dfb57
...
...
@@ -23,6 +23,7 @@
#include "winnls.h"
#include "wine/unicode.h"
#include "wine/winuser16.h"
#include "wine/winestring.h"
DEFAULT_DEBUG_CHANNEL
(
win
);
...
...
windows/dialog.c
View file @
072dfb57
...
...
@@ -17,6 +17,7 @@
#include "wine/winuser16.h"
#include "wine/winbase16.h"
#include "wine/unicode.h"
#include "wine/winestring.h"
#include "dialog.h"
#include "drive.h"
#include "heap.h"
...
...
windows/input.c
View file @
072dfb57
...
...
@@ -20,6 +20,7 @@
#include "winuser.h"
#include "wine/winbase16.h"
#include "wine/winuser16.h"
#include "wine/winestring.h"
#include "wine/keyboard16.h"
#include "win.h"
#include "heap.h"
...
...
windows/msgbox.c
View file @
072dfb57
...
...
@@ -10,6 +10,7 @@
#include "wingdi.h"
#include "wine/winbase16.h"
#include "wine/winuser16.h"
#include "wine/winestring.h"
#include "dlgs.h"
#include "heap.h"
#include "ldt.h"
...
...
windows/sysparams.c
View file @
072dfb57
...
...
@@ -12,6 +12,7 @@
#include "wingdi.h"
#include "winreg.h"
#include "wine/winuser16.h"
#include "wine/winestring.h"
#include "winerror.h"
#include "keyboard.h"
...
...
windows/user.c
View file @
072dfb57
...
...
@@ -10,6 +10,7 @@
#include "windef.h"
#include "wingdi.h"
#include "winuser.h"
#include "wine/winestring.h"
#include "heap.h"
#include "user.h"
#include "task.h"
...
...
@@ -24,7 +25,6 @@
#include "message.h"
#include "module.h"
#include "miscemu.h"
#include "shell.h"
#include "sysmetrics.h"
#include "callback.h"
#include "local.h"
...
...
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