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
1f3c289a
Commit
1f3c289a
authored
Nov 28, 2006
by
Detlef Riekenberg
Committed by
Alexandre Julliard
Nov 29, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool: Implement AddPortA.
parent
03daa608
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
info.c
dlls/winspool.drv/info.c
+22
-2
No files found.
dlls/winspool.drv/info.c
View file @
1f3c289a
...
...
@@ -5754,8 +5754,28 @@ BOOL WINAPI AbortPrinter( HANDLE hPrinter )
*/
BOOL
WINAPI
AddPortA
(
LPSTR
pName
,
HWND
hWnd
,
LPSTR
pMonitorName
)
{
FIXME
(
"(%s, %p, %s), stub!
\n
"
,
debugstr_a
(
pName
),
hWnd
,
debugstr_a
(
pMonitorName
));
return
FALSE
;
LPWSTR
nameW
=
NULL
;
LPWSTR
monitorW
=
NULL
;
DWORD
len
;
BOOL
res
;
TRACE
(
"(%s, %p, %s)
\n
"
,
debugstr_a
(
pName
),
hWnd
,
debugstr_a
(
pMonitorName
));
if
(
pName
)
{
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
pName
,
-
1
,
NULL
,
0
);
nameW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
pName
,
-
1
,
nameW
,
len
);
}
if
(
pMonitorName
)
{
len
=
MultiByteToWideChar
(
CP_ACP
,
0
,
pMonitorName
,
-
1
,
NULL
,
0
);
monitorW
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
*
sizeof
(
WCHAR
));
MultiByteToWideChar
(
CP_ACP
,
0
,
pMonitorName
,
-
1
,
monitorW
,
len
);
}
res
=
AddPortW
(
nameW
,
hWnd
,
monitorW
);
HeapFree
(
GetProcessHeap
(),
0
,
nameW
);
HeapFree
(
GetProcessHeap
(),
0
,
monitorW
);
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