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
5d6f96fd
Commit
5d6f96fd
authored
Dec 02, 2016
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Dec 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
localspl: Accept valid environments in AddMonitor.
Signed-off-by:
Detlef Riekenberg
<
wine.dev@web.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1a6d3c15
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
provider.c
dlls/localspl/provider.c
+5
-6
No files found.
dlls/localspl/provider.c
View file @
5d6f96fd
...
...
@@ -1465,6 +1465,7 @@ static BOOL myAddPrinterDriverEx(DWORD level, LPBYTE pDriverInfo, DWORD dwFileCo
*/
static
BOOL
WINAPI
fpAddMonitor
(
LPWSTR
pName
,
DWORD
Level
,
LPBYTE
pMonitors
)
{
const
printenv_t
*
env
;
monitor_t
*
pm
=
NULL
;
LPMONITOR_INFO_2W
mi2w
;
HKEY
hroot
=
NULL
;
...
...
@@ -1489,12 +1490,10 @@ static BOOL WINAPI fpAddMonitor(LPWSTR pName, DWORD Level, LPBYTE pMonitors)
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
if
(
!
mi2w
->
pEnvironment
||
lstrcmpW
(
mi2w
->
pEnvironment
,
x86_envnameW
))
{
WARN
(
"Environment %s requested (we support only %s)
\n
"
,
debugstr_w
(
mi2w
->
pEnvironment
),
debugstr_w
(
x86_envnameW
));
SetLastError
(
ERROR_INVALID_ENVIRONMENT
);
return
FALSE
;
}
env
=
validate_envW
(
mi2w
->
pEnvironment
);
if
(
!
env
)
return
FALSE
;
/* ERROR_INVALID_ENVIRONMENT */
if
(
!
mi2w
->
pDLLName
||
(
!
mi2w
->
pDLLName
[
0
]))
{
WARN
(
"pDLLName not valid : %s
\n
"
,
debugstr_w
(
mi2w
->
pDLLName
));
...
...
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