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
1637d402
Commit
1637d402
authored
Mar 27, 2010
by
Mikhail Maroukhine
Committed by
Alexandre Julliard
Mar 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localspl: Fix compiler warnings with flag -Wcast-qual.
parent
818ff38d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
provider.c
dlls/localspl/provider.c
+6
-6
No files found.
dlls/localspl/provider.c
View file @
1637d402
...
@@ -1375,7 +1375,7 @@ static BOOL myAddPrinterDriverEx(DWORD level, LPBYTE pDriverInfo, DWORD dwFileCo
...
@@ -1375,7 +1375,7 @@ static BOOL myAddPrinterDriverEx(DWORD level, LPBYTE pDriverInfo, DWORD dwFileCo
}
}
/* Verified with the Adobe PS Driver, that w2k does not use di.Version */
/* Verified with the Adobe PS Driver, that w2k does not use di.Version */
RegSetValueExW
(
hdrv
,
versionW
,
0
,
REG_DWORD
,
(
LPBYTE
)
&
env
->
driverversion
,
RegSetValueExW
(
hdrv
,
versionW
,
0
,
REG_DWORD
,
(
const
BYTE
*
)
&
env
->
driverversion
,
sizeof
(
DWORD
));
sizeof
(
DWORD
));
RegSetValueExW
(
hdrv
,
driverW
,
0
,
REG_SZ
,
(
LPBYTE
)
di
.
pDriverPath
,
RegSetValueExW
(
hdrv
,
driverW
,
0
,
REG_SZ
,
(
LPBYTE
)
di
.
pDriverPath
,
...
@@ -1395,7 +1395,7 @@ static BOOL myAddPrinterDriverEx(DWORD level, LPBYTE pDriverInfo, DWORD dwFileCo
...
@@ -1395,7 +1395,7 @@ static BOOL myAddPrinterDriverEx(DWORD level, LPBYTE pDriverInfo, DWORD dwFileCo
RegSetValueExW
(
hdrv
,
help_fileW
,
0
,
REG_SZ
,
(
LPBYTE
)
di
.
pHelpFile
,
RegSetValueExW
(
hdrv
,
help_fileW
,
0
,
REG_SZ
,
(
LPBYTE
)
di
.
pHelpFile
,
(
lstrlenW
(
di
.
pHelpFile
)
+
1
)
*
sizeof
(
WCHAR
));
(
lstrlenW
(
di
.
pHelpFile
)
+
1
)
*
sizeof
(
WCHAR
));
else
else
RegSetValueExW
(
hdrv
,
help_fileW
,
0
,
REG_SZ
,
(
LPBYTE
)
emptyW
,
sizeof
(
emptyW
));
RegSetValueExW
(
hdrv
,
help_fileW
,
0
,
REG_SZ
,
(
const
BYTE
*
)
emptyW
,
sizeof
(
emptyW
));
apd_copyfile
(
di
.
pHelpFile
,
&
apd
);
apd_copyfile
(
di
.
pHelpFile
,
&
apd
);
...
@@ -1404,7 +1404,7 @@ static BOOL myAddPrinterDriverEx(DWORD level, LPBYTE pDriverInfo, DWORD dwFileCo
...
@@ -1404,7 +1404,7 @@ static BOOL myAddPrinterDriverEx(DWORD level, LPBYTE pDriverInfo, DWORD dwFileCo
RegSetValueExW
(
hdrv
,
dependent_filesW
,
0
,
REG_MULTI_SZ
,
(
LPBYTE
)
di
.
pDependentFiles
,
RegSetValueExW
(
hdrv
,
dependent_filesW
,
0
,
REG_MULTI_SZ
,
(
LPBYTE
)
di
.
pDependentFiles
,
multi_sz_lenW
(
di
.
pDependentFiles
));
multi_sz_lenW
(
di
.
pDependentFiles
));
else
else
RegSetValueExW
(
hdrv
,
dependent_filesW
,
0
,
REG_MULTI_SZ
,
(
LPBYTE
)
emptyW
,
sizeof
(
emptyW
));
RegSetValueExW
(
hdrv
,
dependent_filesW
,
0
,
REG_MULTI_SZ
,
(
const
BYTE
*
)
emptyW
,
sizeof
(
emptyW
));
while
((
ptr
!=
NULL
)
&&
(
ptr
[
0
]))
{
while
((
ptr
!=
NULL
)
&&
(
ptr
[
0
]))
{
if
(
apd_copyfile
(
ptr
,
&
apd
))
{
if
(
apd_copyfile
(
ptr
,
&
apd
))
{
ptr
+=
lstrlenW
(
ptr
)
+
1
;
ptr
+=
lstrlenW
(
ptr
)
+
1
;
...
@@ -1420,20 +1420,20 @@ static BOOL myAddPrinterDriverEx(DWORD level, LPBYTE pDriverInfo, DWORD dwFileCo
...
@@ -1420,20 +1420,20 @@ static BOOL myAddPrinterDriverEx(DWORD level, LPBYTE pDriverInfo, DWORD dwFileCo
RegSetValueExW
(
hdrv
,
monitorW
,
0
,
REG_SZ
,
(
LPBYTE
)
di
.
pMonitorName
,
RegSetValueExW
(
hdrv
,
monitorW
,
0
,
REG_SZ
,
(
LPBYTE
)
di
.
pMonitorName
,
(
lstrlenW
(
di
.
pMonitorName
)
+
1
)
*
sizeof
(
WCHAR
));
(
lstrlenW
(
di
.
pMonitorName
)
+
1
)
*
sizeof
(
WCHAR
));
else
else
RegSetValueExW
(
hdrv
,
monitorW
,
0
,
REG_SZ
,
(
LPBYTE
)
emptyW
,
sizeof
(
emptyW
));
RegSetValueExW
(
hdrv
,
monitorW
,
0
,
REG_SZ
,
(
const
BYTE
*
)
emptyW
,
sizeof
(
emptyW
));
if
(
di
.
pDefaultDataType
)
if
(
di
.
pDefaultDataType
)
RegSetValueExW
(
hdrv
,
datatypeW
,
0
,
REG_SZ
,
(
LPBYTE
)
di
.
pDefaultDataType
,
RegSetValueExW
(
hdrv
,
datatypeW
,
0
,
REG_SZ
,
(
LPBYTE
)
di
.
pDefaultDataType
,
(
lstrlenW
(
di
.
pDefaultDataType
)
+
1
)
*
sizeof
(
WCHAR
));
(
lstrlenW
(
di
.
pDefaultDataType
)
+
1
)
*
sizeof
(
WCHAR
));
else
else
RegSetValueExW
(
hdrv
,
datatypeW
,
0
,
REG_SZ
,
(
LPBYTE
)
emptyW
,
sizeof
(
emptyW
));
RegSetValueExW
(
hdrv
,
datatypeW
,
0
,
REG_SZ
,
(
const
BYTE
*
)
emptyW
,
sizeof
(
emptyW
));
/* settings for level 4 */
/* settings for level 4 */
if
(
di
.
pszzPreviousNames
)
if
(
di
.
pszzPreviousNames
)
RegSetValueExW
(
hdrv
,
previous_namesW
,
0
,
REG_MULTI_SZ
,
(
LPBYTE
)
di
.
pszzPreviousNames
,
RegSetValueExW
(
hdrv
,
previous_namesW
,
0
,
REG_MULTI_SZ
,
(
LPBYTE
)
di
.
pszzPreviousNames
,
multi_sz_lenW
(
di
.
pszzPreviousNames
));
multi_sz_lenW
(
di
.
pszzPreviousNames
));
else
else
RegSetValueExW
(
hdrv
,
previous_namesW
,
0
,
REG_MULTI_SZ
,
(
LPBYTE
)
emptyW
,
sizeof
(
emptyW
));
RegSetValueExW
(
hdrv
,
previous_namesW
,
0
,
REG_MULTI_SZ
,
(
const
BYTE
*
)
emptyW
,
sizeof
(
emptyW
));
if
(
level
>
5
)
TRACE
(
"level %u for Driver %s is incomplete
\n
"
,
level
,
debugstr_w
(
di
.
pName
));
if
(
level
>
5
)
TRACE
(
"level %u for Driver %s is incomplete
\n
"
,
level
,
debugstr_w
(
di
.
pName
));
...
...
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