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
5012fa06
Commit
5012fa06
authored
Jan 15, 2007
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Jan 16, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool: Support xcv in AddPortW.
parent
917b0eed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
16 deletions
+32
-16
info.c
dlls/winspool.drv/info.c
+32
-16
No files found.
dlls/winspool.drv/info.c
View file @
5012fa06
...
...
@@ -6001,7 +6001,8 @@ BOOL WINAPI AddPortA(LPSTR pName, HWND hWnd, LPSTR pMonitorName)
BOOL
WINAPI
AddPortW
(
LPWSTR
pName
,
HWND
hWnd
,
LPWSTR
pMonitorName
)
{
monitor_t
*
pm
;
DWORD
res
=
ROUTER_UNKNOWN
;
monitor_t
*
pui
;
DWORD
res
;
TRACE
(
"(%s, %p, %s)
\n
"
,
debugstr_w
(
pName
),
hWnd
,
debugstr_w
(
pMonitorName
));
...
...
@@ -6016,28 +6017,43 @@ BOOL WINAPI AddPortW(LPWSTR pName, HWND hWnd, LPWSTR pMonitorName)
}
/* an empty Monitorname is Invalid */
if
(
!
pMonitorName
[
0
])
goto
cleanup
;
if
(
!
pMonitorName
[
0
])
{
SetLastError
(
ERROR_NOT_SUPPORTED
);
return
FALSE
;
}
pm
=
monitor_load
(
pMonitorName
,
NULL
);
if
(
pm
&&
pm
->
monitor
)
{
if
(
pm
->
monitor
->
pfnAddPort
!=
NULL
)
{
res
=
pm
->
monitor
->
pfnAddPort
(
pName
,
hWnd
,
pMonitorName
);
TRACE
(
"got %d with %d
\n
"
,
res
,
GetLastError
());
if
(
pm
&&
pm
->
monitor
&&
pm
->
monitor
->
pfnAddPort
)
{
res
=
pm
->
monitor
->
pfnAddPort
(
pName
,
hWnd
,
pMonitorName
);
TRACE
(
"got %d with %u
\n
"
,
res
,
GetLastError
());
res
=
TRUE
;
}
else
{
pui
=
monitor_loadui
(
pm
);
if
(
pui
&&
pui
->
monitorUI
&&
pui
->
monitorUI
->
pfnAddPortUI
)
{
TRACE
(
"use %p: %s
\n
"
,
pui
,
debugstr_w
(
pui
->
dllname
));
res
=
pui
->
monitorUI
->
pfnAddPortUI
(
pName
,
hWnd
,
pMonitorName
,
NULL
);
TRACE
(
"got %d with %u
\n
"
,
res
,
GetLastError
());
res
=
TRUE
;
}
else
if
(
pm
->
monitor
->
pfnXcvOpenPort
!=
NULL
)
else
{
FIXME
(
"XcvOpenPort not implemented (dwMonitorSize: %d)
\n
"
,
pm
->
dwMonitorSize
);
FIXME
(
"not implemented for %s (%p: %s => %p: %s)
\n
"
,
debugstr_w
(
pMonitorName
),
pm
,
pm
?
debugstr_w
(
pm
->
dllname
)
:
NULL
,
pui
,
pui
?
debugstr_w
(
pui
->
dllname
)
:
NULL
);
/* XP: ERROR_NOT_SUPPORTED, NT351,9x: ERROR_INVALID_PARAMETER */
SetLastError
(
ERROR_NOT_SUPPORTED
);
res
=
FALSE
;
}
/* invalidate cached PORT_INFO_2W */
if
(
res
==
ROUTER_SUCCESS
)
monitor_flush
(
pm
);
monitor_unload
(
pui
);
}
monitor_unload
(
pm
);
/* invalidate cached PORT_INFO_2W */
monitor_flush
(
pm
);
cleanup
:
/* XP: ERROR_NOT_SUPPORTED, NT351,9x: ERROR_INVALID_PARAMETER */
if
(
res
==
ROUTER_UNKNOWN
)
SetLastError
(
ERROR_NOT_SUPPORTED
);
TRACE
(
"returning %d with %d
\n
"
,
(
res
==
ROUTER_SUCCESS
),
GetLastError
());
return
(
res
==
ROUTER_SUCCESS
);
monitor_unload
(
pm
);
TRACE
(
"returning %d with %u
\n
"
,
res
,
GetLastError
());
return
res
;
}
/******************************************************************************
...
...
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