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
9bdd900e
Commit
9bdd900e
authored
Jan 11, 2007
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jan 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool: Support monitors without a name.
parent
092ac1fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
12 deletions
+16
-12
info.c
dlls/winspool.drv/info.c
+16
-12
No files found.
dlls/winspool.drv/info.c
View file @
9bdd900e
...
...
@@ -985,11 +985,13 @@ static monitor_t * monitor_load(LPCWSTR name, LPWSTR dllname)
/* Is the Monitor already loaded? */
EnterCriticalSection
(
&
monitor_handles_cs
);
LIST_FOR_EACH_ENTRY
(
cursor
,
&
monitor_handles
,
monitor_t
,
entry
)
{
if
(
lstrcmpW
(
name
,
cursor
->
name
)
==
0
)
{
pm
=
cursor
;
break
;
if
(
name
)
{
LIST_FOR_EACH_ENTRY
(
cursor
,
&
monitor_handles
,
monitor_t
,
entry
)
{
if
(
cursor
->
name
&&
(
lstrcmpW
(
name
,
cursor
->
name
)
==
0
))
{
pm
=
cursor
;
break
;
}
}
}
...
...
@@ -1005,8 +1007,10 @@ static monitor_t * monitor_load(LPCWSTR name, LPWSTR dllname)
LPMONITOREX
pmonitorEx
;
DWORD
len
;
len
=
lstrlenW
(
MonitorsW
)
+
lstrlenW
(
name
)
+
2
;
regroot
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
if
(
name
)
{
len
=
lstrlenW
(
MonitorsW
)
+
lstrlenW
(
name
)
+
2
;
regroot
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
}
if
(
regroot
)
{
lstrcpyW
(
regroot
,
MonitorsW
);
...
...
@@ -1029,7 +1033,7 @@ static monitor_t * monitor_load(LPCWSTR name, LPWSTR dllname)
pm
->
name
=
strdupW
(
name
);
pm
->
dllname
=
strdupW
(
driver
);
if
(
!
regroot
||
!
pm
->
name
||
!
pm
->
dllname
)
{
if
(
(
name
&&
(
!
regroot
||
!
pm
->
name
))
||
!
pm
->
dllname
)
{
monitor_unload
(
pm
);
SetLastError
(
ERROR_NOT_ENOUGH_MEMORY
);
pm
=
NULL
;
...
...
@@ -1069,10 +1073,10 @@ static monitor_t * monitor_load(LPCWSTR name, LPWSTR dllname)
}
}
if
(
pInitializePrintMonitor
!=
NULL
)
{
if
(
pInitializePrintMonitor
&&
regroot
)
{
pmonitorEx
=
pInitializePrintMonitor
(
regroot
);
TRACE
(
"%p: LPMONITOREX from %s,InitializePrintMonitor(%s)
\n
"
,
pmonitorEx
,
debugstr_w
(
driver
),
debugstr_w
(
regroot
));
TRACE
(
"%p: LPMONITOREX from %s,InitializePrintMonitor(%s)
\n
"
,
pmonitorEx
,
debugstr_w
(
driver
),
debugstr_w
(
regroot
));
if
(
pmonitorEx
)
{
pm
->
dwMonitorSize
=
pmonitorEx
->
dwMonitorSize
;
...
...
@@ -1085,7 +1089,7 @@ static monitor_t * monitor_load(LPCWSTR name, LPWSTR dllname)
}
if
(
!
pm
->
monitor
)
{
if
(
!
pm
->
monitor
&&
regroot
)
{
if
(
pInitializePrintMonitor2
!=
NULL
)
{
FIXME
(
"%s,InitializePrintMonitor2 not implemented
\n
"
,
debugstr_w
(
driver
));
}
...
...
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