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
06111f34
Commit
06111f34
authored
Feb 16, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 16, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntprint: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c23de979
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
Makefile.in
dlls/ntprint/Makefile.in
+0
-1
ntprint.c
dlls/ntprint/ntprint.c
+4
-4
No files found.
dlls/ntprint/Makefile.in
View file @
06111f34
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
ntprint.dll
MODULE
=
ntprint.dll
IMPORTS
=
winspool
IMPORTS
=
winspool
...
...
dlls/ntprint/ntprint.c
View file @
06111f34
...
@@ -51,7 +51,7 @@ HANDLE WINAPI PSetupCreateMonitorInfo(DWORD unknown1, WCHAR *server)
...
@@ -51,7 +51,7 @@ HANDLE WINAPI PSetupCreateMonitorInfo(DWORD unknown1, WCHAR *server)
DWORD
needed
;
DWORD
needed
;
DWORD
res
;
DWORD
res
;
TRACE
(
"(%d, %s)
\n
"
,
unknown1
,
debugstr_w
(
server
));
TRACE
(
"(%
l
d, %s)
\n
"
,
unknown1
,
debugstr_w
(
server
));
mi
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
monitorinfo_t
));
mi
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
monitorinfo_t
));
if
(
!
mi
)
{
if
(
!
mi
)
{
...
@@ -71,7 +71,7 @@ HANDLE WINAPI PSetupCreateMonitorInfo(DWORD unknown1, WCHAR *server)
...
@@ -71,7 +71,7 @@ HANDLE WINAPI PSetupCreateMonitorInfo(DWORD unknown1, WCHAR *server)
return
NULL
;
return
NULL
;
}
}
TRACE
(
"=> %p (%u monitors installed)
\n
"
,
mi
,
mi
->
installed
);
TRACE
(
"=> %p (%
l
u monitors installed)
\n
"
,
mi
,
mi
->
installed
);
return
mi
;
return
mi
;
}
}
...
@@ -118,14 +118,14 @@ BOOL WINAPI PSetupEnumMonitor(HANDLE monitorinfo, DWORD index, LPWSTR buffer, LP
...
@@ -118,14 +118,14 @@ BOOL WINAPI PSetupEnumMonitor(HANDLE monitorinfo, DWORD index, LPWSTR buffer, LP
LPWSTR
nameW
;
LPWSTR
nameW
;
DWORD
len
;
DWORD
len
;
TRACE
(
"(%p, %
u, %p, %p) => %
d
\n
"
,
mi
,
index
,
buffer
,
psize
,
psize
?
*
psize
:
0
);
TRACE
(
"(%p, %
lu, %p, %p) => %l
d
\n
"
,
mi
,
index
,
buffer
,
psize
,
psize
?
*
psize
:
0
);
if
(
index
<
mi
->
installed
)
{
if
(
index
<
mi
->
installed
)
{
nameW
=
mi
->
mi2
[
index
].
pName
;
nameW
=
mi
->
mi2
[
index
].
pName
;
len
=
lstrlenW
(
nameW
)
+
1
;
len
=
lstrlenW
(
nameW
)
+
1
;
if
(
len
<=
*
psize
)
{
if
(
len
<=
*
psize
)
{
memcpy
(
buffer
,
nameW
,
len
*
sizeof
(
WCHAR
));
memcpy
(
buffer
,
nameW
,
len
*
sizeof
(
WCHAR
));
TRACE
(
"#%u: %s
\n
"
,
index
,
debugstr_w
(
buffer
));
TRACE
(
"#%
l
u: %s
\n
"
,
index
,
debugstr_w
(
buffer
));
return
TRUE
;
return
TRUE
;
}
}
*
psize
=
len
;
*
psize
=
len
;
...
...
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