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
ee1eb63b
Commit
ee1eb63b
authored
Oct 07, 2003
by
Daniel Marmier
Committed by
Alexandre Julliard
Oct 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed warnings with gcc option "-Wwrite-strings".
parent
632676b1
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
32 additions
and
30 deletions
+32
-30
crypt.c
dlls/advapi32/crypt.c
+3
-3
cabextract.c
dlls/cabinet/cabextract.c
+2
-1
header.c
dlls/comctl32/header.c
+2
-1
listview.c
dlls/comctl32/listview.c
+8
-8
rebar.c
dlls/comctl32/rebar.c
+2
-2
device.c
dlls/dinput/device.c
+2
-2
dplay.c
dlls/dplayx/dplay.c
+5
-5
dplobby.c
dlls/dplayx/dplobby.c
+7
-7
sock.c
dlls/winsock/tests/sock.c
+1
-1
No files found.
dlls/advapi32/crypt.c
View file @
ee1eb63b
...
...
@@ -51,7 +51,7 @@ HWND crypt_hWindow = 0;
static
inline
PSTR
CRYPT_GetProvKeyName
(
PCSTR
pProvName
)
{
const
P
STR
KEYSTR
=
"Software
\\
Microsoft
\\
Cryptography
\\
Defaults
\\
Provider
\\
"
;
PC
STR
KEYSTR
=
"Software
\\
Microsoft
\\
Cryptography
\\
Defaults
\\
Provider
\\
"
;
PSTR
keyname
;
keyname
=
CRYPT_Alloc
(
strlen
(
KEYSTR
)
+
strlen
(
pProvName
)
+
1
);
...
...
@@ -66,8 +66,8 @@ static inline PSTR CRYPT_GetProvKeyName(PCSTR pProvName)
static
inline
PSTR
CRYPT_GetTypeKeyName
(
DWORD
dwType
,
BOOL
user
)
{
const
P
STR
MACHINESTR
=
"Software
\\
Microsoft
\\
Cryptography
\\
Defaults
\\
Provider Types
\\
Type XXX"
;
const
P
STR
USERSTR
=
"Software
\\
Microsoft
\\
Cryptography
\\
Provider Type XXX"
;
PC
STR
MACHINESTR
=
"Software
\\
Microsoft
\\
Cryptography
\\
Defaults
\\
Provider Types
\\
Type XXX"
;
PC
STR
USERSTR
=
"Software
\\
Microsoft
\\
Cryptography
\\
Provider Type XXX"
;
PSTR
keyname
;
PSTR
ptr
;
...
...
dlls/cabinet/cabextract.c
View file @
ee1eb63b
...
...
@@ -2486,7 +2486,8 @@ void extract_file(struct cab_file *fi, int lower, int fix, LPCSTR dir, cab_decom
exit_handler:
if
(
err
)
{
char
*
errmsg
,
*
cabname
;
const
char
*
errmsg
;
char
*
cabname
;
switch
(
err
)
{
case
DECR_NOMEMORY
:
errmsg
=
"out of memory!
\n
"
;
break
;
...
...
dlls/comctl32/header.c
View file @
ee1eb63b
...
...
@@ -904,8 +904,9 @@ HEADER_InsertItemA (HWND hwnd, WPARAM wParam, LPARAM lParam)
lpItem
->
cxy
=
phdi
->
cxy
;
if
(
phdi
->
mask
&
HDI_TEXT
)
{
static
char
empty
[]
=
""
;
if
(
!
phdi
->
pszText
)
/* null pointer check */
phdi
->
pszText
=
""
;
phdi
->
pszText
=
empty
;
if
(
phdi
->
pszText
!=
LPSTR_TEXTCALLBACKA
)
{
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
phdi
->
pszText
,
-
1
,
NULL
,
0
);
lpItem
->
pszText
=
Alloc
(
len
*
sizeof
(
WCHAR
)
);
...
...
dlls/comctl32/listview.c
View file @
ee1eb63b
...
...
@@ -529,7 +529,7 @@ static char* debug_getbuf()
return
buffers
[
index
++
%
DEBUG_BUFFERS
];
}
static
inline
char
*
debugrange
(
const
RANGE
*
lprng
)
static
inline
c
onst
c
har
*
debugrange
(
const
RANGE
*
lprng
)
{
if
(
lprng
)
{
...
...
@@ -539,7 +539,7 @@ static inline char* debugrange(const RANGE *lprng)
}
else
return
"(null)"
;
}
static
inline
char
*
debugpoint
(
const
POINT
*
lppt
)
static
inline
c
onst
c
har
*
debugpoint
(
const
POINT
*
lppt
)
{
if
(
lppt
)
{
...
...
@@ -549,7 +549,7 @@ static inline char* debugpoint(const POINT *lppt)
}
else
return
"(null)"
;
}
static
inline
char
*
debugrect
(
const
RECT
*
rect
)
static
inline
c
onst
c
har
*
debugrect
(
const
RECT
*
rect
)
{
if
(
rect
)
{
...
...
@@ -560,7 +560,7 @@ static inline char* debugrect(const RECT *rect)
}
else
return
"(null)"
;
}
static
char
*
debugscrollinfo
(
const
SCROLLINFO
*
pScrollInfo
)
static
c
onst
c
har
*
debugscrollinfo
(
const
SCROLLINFO
*
pScrollInfo
)
{
char
*
buf
=
debug_getbuf
(),
*
text
=
buf
;
int
len
,
size
=
DEBUG_BUFFER_SIZE
;
...
...
@@ -592,7 +592,7 @@ undo:
return
text
;
}
static
char
*
debugnmlistview
(
const
NMLISTVIEW
*
plvnm
)
static
c
onst
c
har
*
debugnmlistview
(
const
NMLISTVIEW
*
plvnm
)
{
if
(
plvnm
)
{
...
...
@@ -605,7 +605,7 @@ static char* debugnmlistview(const NMLISTVIEW *plvnm)
}
else
return
"(null)"
;
}
static
char
*
debuglvitem_t
(
const
LVITEMW
*
lpLVItem
,
BOOL
isW
)
static
c
onst
c
har
*
debuglvitem_t
(
const
LVITEMW
*
lpLVItem
,
BOOL
isW
)
{
char
*
buf
=
debug_getbuf
(),
*
text
=
buf
;
int
len
,
size
=
DEBUG_BUFFER_SIZE
;
...
...
@@ -641,7 +641,7 @@ undo:
return
text
;
}
static
char
*
debuglvcolumn_t
(
const
LVCOLUMNW
*
lpColumn
,
BOOL
isW
)
static
c
onst
c
har
*
debuglvcolumn_t
(
const
LVCOLUMNW
*
lpColumn
,
BOOL
isW
)
{
char
*
buf
=
debug_getbuf
(),
*
text
=
buf
;
int
len
,
size
=
DEBUG_BUFFER_SIZE
;
...
...
@@ -681,7 +681,7 @@ undo:
return
text
;
}
static
char
*
debuglvhittestinfo
(
const
LVHITTESTINFO
*
lpht
)
static
c
onst
c
har
*
debuglvhittestinfo
(
const
LVHITTESTINFO
*
lpht
)
{
if
(
lpht
)
{
...
...
dlls/comctl32/rebar.c
View file @
ee1eb63b
...
...
@@ -334,7 +334,7 @@ typedef struct
static
UINT
mindragx
=
0
;
static
UINT
mindragy
=
0
;
static
char
*
band_stylename
[]
=
{
static
c
onst
c
har
*
band_stylename
[]
=
{
"RBBS_BREAK"
,
/* 0001 */
"RBBS_FIXEDSIZE"
,
/* 0002 */
"RBBS_CHILDEDGE"
,
/* 0004 */
...
...
@@ -346,7 +346,7 @@ static char *band_stylename[] = {
"RBBS_NOGRIPPER"
,
/* 0100 */
NULL
};
static
char
*
band_maskname
[]
=
{
static
c
onst
c
har
*
band_maskname
[]
=
{
"RBBIM_STYLE"
,
/* 0x00000001 */
"RBBIM_COLORS"
,
/* 0x00000002 */
"RBBIM_TEXT"
,
/* 0x00000004 */
...
...
dlls/dinput/device.c
View file @
ee1eb63b
...
...
@@ -45,7 +45,7 @@ void _dump_cooperativelevel_DI(DWORD dwFlags) {
int
i
;
const
struct
{
DWORD
mask
;
c
har
*
name
;
c
onst
char
*
name
;
}
flags
[]
=
{
#define FE(x) { x, #x},
FE
(
DISCL_BACKGROUND
)
...
...
@@ -64,7 +64,7 @@ void _dump_EnumObjects_flags(DWORD dwFlags) {
int
i
;
const
struct
{
DWORD
mask
;
c
har
*
name
;
c
onst
char
*
name
;
}
flags
[]
=
{
#define FE(x) { x, #x},
FE
(
DIDFT_ABSAXIS
)
...
...
dlls/dplayx/dplay.c
View file @
ee1eb63b
...
...
@@ -3660,7 +3660,7 @@ static HRESULT WINAPI DirectPlay3AImpl_EnumConnections
{
HKEY
hkResult
;
LPCSTR
searchSubKey
=
"SOFTWARE
\\
Microsoft
\\
DirectPlay
\\
Service Providers"
;
LP
STR
guidDataSubKey
=
"Guid"
;
LP
CSTR
guidDataSubKey
=
"Guid"
;
char
subKeyName
[
51
];
DWORD
dwIndex
,
sizeOfSubKeyName
=
50
;
FILETIME
filetime
;
...
...
@@ -3754,7 +3754,7 @@ static HRESULT WINAPI DirectPlay3AImpl_EnumConnections
{
HKEY
hkResult
;
LPCSTR
searchSubKey
=
"SOFTWARE
\\
Microsoft
\\
DirectPlay
\\
Lobby Providers"
;
LP
STR
guidDataSubKey
=
"Guid"
;
LP
CSTR
guidDataSubKey
=
"Guid"
;
char
subKeyName
[
51
];
DWORD
dwIndex
,
sizeOfSubKeyName
=
50
;
FILETIME
filetime
;
...
...
@@ -5218,9 +5218,9 @@ HRESULT WINAPI DirectPlayEnumerateA( LPDPENUMDPCALLBACKA lpEnumCallback,
NULL
,
NULL
,
NULL
,
&
filetime
)
!=
ERROR_NO_MORE_ITEMS
;
++
dwIndex
,
sizeOfSubKeyName
=
50
)
{
LP
STR
majVerDataSubKey
=
"dwReserved1"
;
LP
STR
minVerDataSubKey
=
"dwReserved2"
;
LP
STR
guidDataSubKey
=
"Guid"
;
LP
CSTR
majVerDataSubKey
=
"dwReserved1"
;
LP
CSTR
minVerDataSubKey
=
"dwReserved2"
;
LP
CSTR
guidDataSubKey
=
"Guid"
;
HKEY
hkServiceProvider
;
GUID
serviceProviderGUID
;
DWORD
returnTypeGUID
,
returnTypeReserved
,
sizeOfReturnBuffer
=
50
;
...
...
dlls/dplayx/dplobby.c
View file @
ee1eb63b
...
...
@@ -775,8 +775,8 @@ static HRESULT WINAPI IDirectPlayLobbyAImpl_EnumAddressTypes
char
returnBuffer
[
51
];
WCHAR
buff
[
51
];
DWORD
dwAtIndex
;
LP
STR
atKey
=
"Address Types"
;
LP
STR
guidDataSubKey
=
"Guid"
;
LP
CSTR
atKey
=
"Address Types"
;
LP
CSTR
guidDataSubKey
=
"Guid"
;
FILETIME
filetime
;
...
...
@@ -886,7 +886,7 @@ static HRESULT WINAPI IDirectPlayLobbyAImpl_EnumLocalApplications
HKEY
hkResult
;
LPCSTR
searchSubKey
=
"SOFTWARE
\\
Microsoft
\\
DirectPlay
\\
Applications"
;
LP
STR
guidDataSubKey
=
"Guid"
;
LP
CSTR
guidDataSubKey
=
"Guid"
;
DWORD
dwIndex
,
sizeOfSubKeyName
=
50
;
char
subKeyName
[
51
];
FILETIME
filetime
;
...
...
@@ -1081,10 +1081,10 @@ static BOOL CALLBACK RunApplicationA_EnumLocalApplications
{
char
returnBuffer
[
200
];
DWORD
returnType
,
sizeOfReturnBuffer
;
LPSTR
clSubKey
=
"CommandLine"
;
LPSTR
cdSubKey
=
"CurrentDirectory"
;
LPSTR
fileSubKey
=
"File"
;
LPSTR
pathSubKey
=
"Path"
;
LP
C
STR
clSubKey
=
"CommandLine"
;
LP
C
STR
cdSubKey
=
"CurrentDirectory"
;
LP
C
STR
fileSubKey
=
"File"
;
LP
C
STR
pathSubKey
=
"Path"
;
/* FIXME: Lazy man hack - dplay struct has the present reg key saved */
...
...
dlls/winsock/tests/sock.c
View file @
ee1eb63b
...
...
@@ -68,7 +68,7 @@ typedef struct test_params
{
int
sock_type
;
int
sock_prot
;
c
har
*
inet_addr
;
c
onst
char
*
inet_addr
;
short
inet_port
;
int
chunk_size
;
int
n_chunks
;
...
...
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