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
af8228f0
Commit
af8228f0
authored
Jun 13, 2012
by
Huw Davies
Committed by
Alexandre Julliard
Jun 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localspl: Remove a bunch of casts.
parent
30a1ed53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
provider.c
dlls/localspl/provider.c
+6
-5
No files found.
dlls/localspl/provider.c
View file @
af8228f0
...
...
@@ -1059,6 +1059,7 @@ static BOOL WINAPI fpGetPrinterDriverDirectory(LPWSTR pName, LPWSTR pEnvironment
{
DWORD
needed
;
const
printenv_t
*
env
;
WCHAR
*
const
dir
=
(
WCHAR
*
)
pDriverDirectory
;
TRACE
(
"(%s, %s, %d, %p, %d, %p)
\n
"
,
debugstr_w
(
pName
),
debugstr_w
(
pEnvironment
),
Level
,
pDriverDirectory
,
cbBuf
,
pcbNeeded
);
...
...
@@ -1087,18 +1088,18 @@ static BOOL WINAPI fpGetPrinterDriverDirectory(LPWSTR pName, LPWSTR pEnvironment
return
FALSE
;
}
if
(
pDriverDirectory
==
NULL
)
{
if
(
dir
==
NULL
)
{
/* ERROR_INVALID_USER_BUFFER is NT, ERROR_INVALID_PARAMETER is win9x */
SetLastError
(
ERROR_INVALID_USER_BUFFER
);
return
FALSE
;
}
GetSystemDirectoryW
(
(
LPWSTR
)
pDriverDirectory
,
cbBuf
/
sizeof
(
WCHAR
)
);
GetSystemDirectoryW
(
dir
,
cbBuf
/
sizeof
(
WCHAR
)
);
/* add the Subdirectories */
lstrcatW
(
(
LPWSTR
)
pDriverDirectory
,
spooldriversW
);
lstrcatW
(
(
LPWSTR
)
pDriverDirectory
,
env
->
subdir
);
lstrcatW
(
dir
,
spooldriversW
);
lstrcatW
(
dir
,
env
->
subdir
);
TRACE
(
"=> %s
\n
"
,
debugstr_w
((
LPWSTR
)
pDriverDirectory
)
);
TRACE
(
"=> %s
\n
"
,
debugstr_w
(
dir
)
);
return
TRUE
;
}
...
...
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