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
93d9d8a3
Commit
93d9d8a3
authored
Mar 28, 2010
by
Mikhail Maroukhine
Committed by
Alexandre Julliard
Mar 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
programs: Fix compiler warnings with flag -Wcast-qual.
parent
cad91b8d
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
16 deletions
+16
-16
directory.c
programs/cmd/directory.c
+3
-3
services.c
programs/services/services.c
+1
-1
wineboot.c
programs/wineboot/wineboot.c
+1
-1
tgt_active.c
programs/winedbg/tgt_active.c
+2
-2
winemenubuilder.c
programs/winemenubuilder/winemenubuilder.c
+7
-7
hlpfile.c
programs/winhlp32/hlpfile.c
+2
-2
No files found.
programs/cmd/directory.c
View file @
93d9d8a3
...
...
@@ -123,8 +123,8 @@ static WCHAR * WCMD_filesize64 (ULONGLONG n) {
*/
static
int
WCMD_dir_sort
(
const
void
*
a
,
const
void
*
b
)
{
WIN32_FIND_DATAW
*
filea
=
(
WIN32_FIND_DATAW
*
)
a
;
WIN32_FIND_DATAW
*
fileb
=
(
WIN32_FIND_DATAW
*
)
b
;
const
WIN32_FIND_DATAW
*
filea
=
(
const
WIN32_FIND_DATAW
*
)
a
;
const
WIN32_FIND_DATAW
*
fileb
=
(
const
WIN32_FIND_DATAW
*
)
b
;
int
result
=
0
;
/* If /OG or /O-G supplied, dirs go at the top or bottom, ignoring the
...
...
@@ -154,7 +154,7 @@ static int WCMD_dir_sort (const void *a, const void *b)
/* Order by Date: (Takes into account which date (/T option) */
}
else
if
(
dirOrder
==
Date
)
{
FILETIME
*
ft
;
const
FILETIME
*
ft
;
ULONG64
timea
,
timeb
;
if
(
dirTime
==
Written
)
{
...
...
programs/services/services.c
View file @
93d9d8a3
...
...
@@ -149,7 +149,7 @@ static DWORD reg_set_string_value(HKEY hKey, LPCWSTR value_name, LPCWSTR string)
return
ERROR_SUCCESS
;
}
return
RegSetValueExW
(
hKey
,
value_name
,
0
,
REG_SZ
,
(
LPBYTE
)
string
,
sizeof
(
WCHAR
)
*
(
strlenW
(
string
)
+
1
));
return
RegSetValueExW
(
hKey
,
value_name
,
0
,
REG_SZ
,
(
const
BYTE
*
)
string
,
sizeof
(
WCHAR
)
*
(
strlenW
(
string
)
+
1
));
}
DWORD
save_service_config
(
struct
service_entry
*
entry
)
...
...
programs/wineboot/wineboot.c
View file @
93d9d8a3
...
...
@@ -161,7 +161,7 @@ done:
/* wrapper for RegSetValueExW */
static
DWORD
set_reg_value
(
HKEY
hkey
,
const
WCHAR
*
name
,
const
WCHAR
*
value
)
{
return
RegSetValueExW
(
hkey
,
name
,
0
,
REG_SZ
,
(
BYTE
*
)
value
,
(
strlenW
(
value
)
+
1
)
*
sizeof
(
WCHAR
)
);
return
RegSetValueExW
(
hkey
,
name
,
0
,
REG_SZ
,
(
const
BYTE
*
)
value
,
(
strlenW
(
value
)
+
1
)
*
sizeof
(
WCHAR
)
);
}
/* create the volatile hardware registry keys */
...
...
programs/winedbg/tgt_active.c
View file @
93d9d8a3
...
...
@@ -245,7 +245,7 @@ static void dbg_exception_epilog(void)
static
DWORD
dbg_handle_exception
(
const
EXCEPTION_RECORD
*
rec
,
BOOL
first_chance
)
{
BOOL
is_debug
=
FALSE
;
THREADNAME_INFO
*
pThreadName
;
const
THREADNAME_INFO
*
pThreadName
;
struct
dbg_thread
*
pThread
;
assert
(
dbg_curr_thread
);
...
...
@@ -260,7 +260,7 @@ static DWORD dbg_handle_exception(const EXCEPTION_RECORD* rec, BOOL first_chance
is_debug
=
TRUE
;
break
;
case
EXCEPTION_NAME_THREAD
:
pThreadName
=
(
THREADNAME_INFO
*
)(
rec
->
ExceptionInformation
);
pThreadName
=
(
const
THREADNAME_INFO
*
)(
rec
->
ExceptionInformation
);
if
(
pThreadName
->
dwThreadID
==
-
1
)
pThread
=
dbg_curr_thread
;
else
...
...
programs/winemenubuilder/winemenubuilder.c
View file @
93d9d8a3
...
...
@@ -922,7 +922,7 @@ static BOOL write_desktop_entry(const char *unix_link, const char *location, con
HKEY
hkey
=
open_menus_reg_key
();
if
(
hkey
)
{
RegSetValueExA
(
hkey
,
location
,
0
,
REG_SZ
,
(
BYTE
*
)
unix_link
,
lstrlenA
(
unix_link
)
+
1
);
RegSetValueExA
(
hkey
,
location
,
0
,
REG_SZ
,
(
const
BYTE
*
)
unix_link
,
lstrlenA
(
unix_link
)
+
1
);
RegCloseKey
(
hkey
);
}
else
...
...
@@ -1061,7 +1061,7 @@ end:
HKEY
hkey
=
open_menus_reg_key
();
if
(
hkey
)
{
RegSetValueExA
(
hkey
,
menuPath
,
0
,
REG_SZ
,
(
BYTE
*
)
unix_link
,
lstrlenA
(
unix_link
)
+
1
);
RegSetValueExA
(
hkey
,
menuPath
,
0
,
REG_SZ
,
(
const
BYTE
*
)
unix_link
,
lstrlenA
(
unix_link
)
+
1
);
RegCloseKey
(
hkey
);
}
}
...
...
@@ -1748,12 +1748,12 @@ static void update_association(LPCWSTR extension, LPCSTR mimeType, LPCWSTR progI
HKEY
subkey
;
if
(
RegCreateKeyW
(
assocKey
,
extension
,
&
subkey
)
==
ERROR_SUCCESS
)
{
RegSetValueExA
(
subkey
,
"MimeType"
,
0
,
REG_SZ
,
(
BYTE
*
)
mimeType
,
lstrlenA
(
mimeType
)
+
1
);
RegSetValueExW
(
subkey
,
ProgIDW
,
0
,
REG_SZ
,
(
BYTE
*
)
progId
,
(
lstrlenW
(
progId
)
+
1
)
*
sizeof
(
WCHAR
));
RegSetValueExA
(
subkey
,
"AppName"
,
0
,
REG_SZ
,
(
BYTE
*
)
appName
,
lstrlenA
(
appName
)
+
1
);
RegSetValueExA
(
subkey
,
"MimeType"
,
0
,
REG_SZ
,
(
const
BYTE
*
)
mimeType
,
lstrlenA
(
mimeType
)
+
1
);
RegSetValueExW
(
subkey
,
ProgIDW
,
0
,
REG_SZ
,
(
const
BYTE
*
)
progId
,
(
lstrlenW
(
progId
)
+
1
)
*
sizeof
(
WCHAR
));
RegSetValueExA
(
subkey
,
"AppName"
,
0
,
REG_SZ
,
(
const
BYTE
*
)
appName
,
lstrlenA
(
appName
)
+
1
);
if
(
docName
)
RegSetValueExW
(
subkey
,
DocNameW
,
0
,
REG_SZ
,
(
BYTE
*
)
docName
,
(
lstrlenW
(
docName
)
+
1
)
*
sizeof
(
WCHAR
));
RegSetValueExA
(
subkey
,
"DesktopFile"
,
0
,
REG_SZ
,
(
BYTE
*
)
desktopFile
,
(
lstrlenA
(
desktopFile
)
+
1
));
RegSetValueExW
(
subkey
,
DocNameW
,
0
,
REG_SZ
,
(
const
BYTE
*
)
docName
,
(
lstrlenW
(
docName
)
+
1
)
*
sizeof
(
WCHAR
));
RegSetValueExA
(
subkey
,
"DesktopFile"
,
0
,
REG_SZ
,
(
const
BYTE
*
)
desktopFile
,
(
lstrlenA
(
desktopFile
)
+
1
));
RegCloseKey
(
subkey
);
}
else
...
...
programs/winhlp32/hlpfile.c
View file @
93d9d8a3
...
...
@@ -492,7 +492,7 @@ static int comp_FindSubFile(void *p, const void *key,
int
leaf
,
void
**
next
)
{
*
next
=
(
char
*
)
p
+
strlen
(
p
)
+
(
leaf
?
5
:
3
);
WINE_TRACE
(
"Comparing '%s' with '%s'
\n
"
,
(
char
*
)
p
,
(
char
*
)
key
);
WINE_TRACE
(
"Comparing '%s' with '%s'
\n
"
,
(
char
*
)
p
,
(
c
onst
c
har
*
)
key
);
return
strcmp
(
p
,
key
);
}
...
...
@@ -1601,7 +1601,7 @@ static BOOL HLPFILE_BrowseParagraph(HLPFILE_PAGE* page, struct RtfData* rd,
case
0xEE
:
case
0xEF
:
{
c
har
*
ptr
=
(
char
*
)
format
+
8
;
c
onst
char
*
ptr
=
(
const
char
*
)
format
+
8
;
BYTE
type
=
format
[
3
];
int
wnd
=
-
1
;
...
...
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