Eric Pouech : ntprint: Enable compilation with long types.
Alexandre Julliard
julliard at winehq.org
Wed Feb 16 15:30:23 CST 2022
Module: wine
Branch: master
Commit: 06111f34d8fc096beca5e8b610c1acf8fc57004e
URL: https://source.winehq.org/git/wine.git/?a=commit;h=06111f34d8fc096beca5e8b610c1acf8fc57004e
Author: Eric Pouech <eric.pouech at gmail.com>
Date: Wed Feb 16 08:11:46 2022 +0100
ntprint: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/ntprint/Makefile.in | 1 -
dlls/ntprint/ntprint.c | 8 ++++----
2 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/dlls/ntprint/Makefile.in b/dlls/ntprint/Makefile.in
index bdfe69a69e6..2ca355140d9 100644
--- a/dlls/ntprint/Makefile.in
+++ b/dlls/ntprint/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = ntprint.dll
IMPORTS = winspool
diff --git a/dlls/ntprint/ntprint.c b/dlls/ntprint/ntprint.c
index 6a4cb57c7f6..e89929a0ba1 100644
--- a/dlls/ntprint/ntprint.c
+++ b/dlls/ntprint/ntprint.c
@@ -51,7 +51,7 @@ HANDLE WINAPI PSetupCreateMonitorInfo(DWORD unknown1, WCHAR *server)
DWORD needed;
DWORD res;
- TRACE("(%d, %s)\n", unknown1, debugstr_w(server));
+ TRACE("(%ld, %s)\n", unknown1, debugstr_w(server));
mi = HeapAlloc(GetProcessHeap(), 0, sizeof(monitorinfo_t));
if (!mi) {
@@ -71,7 +71,7 @@ HANDLE WINAPI PSetupCreateMonitorInfo(DWORD unknown1, WCHAR *server)
return NULL;
}
- TRACE("=> %p (%u monitors installed)\n", mi, mi->installed);
+ TRACE("=> %p (%lu monitors installed)\n", mi, mi->installed);
return mi;
}
@@ -118,14 +118,14 @@ BOOL WINAPI PSetupEnumMonitor(HANDLE monitorinfo, DWORD index, LPWSTR buffer, LP
LPWSTR nameW;
DWORD len;
- TRACE("(%p, %u, %p, %p) => %d\n", mi, index, buffer, psize, psize ? *psize : 0);
+ TRACE("(%p, %lu, %p, %p) => %ld\n", mi, index, buffer, psize, psize ? *psize : 0);
if (index < mi->installed) {
nameW = mi->mi2[index].pName;
len = lstrlenW(nameW) + 1;
if (len <= *psize) {
memcpy(buffer, nameW, len * sizeof(WCHAR));
- TRACE("#%u: %s\n", index, debugstr_w(buffer));
+ TRACE("#%lu: %s\n", index, debugstr_w(buffer));
return TRUE;
}
*psize = len;
More information about the wine-cvs
mailing list