prntvpt: Enable compilation with long types.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
55f0f125f2
commit
08332f4d3d
|
@ -1,4 +1,3 @@
|
||||||
EXTRADEFS = -DWINE_NO_LONG_TYPES
|
|
||||||
MODULE = prntvpt.dll
|
MODULE = prntvpt.dll
|
||||||
IMPORTLIB = prntvpt
|
IMPORTLIB = prntvpt
|
||||||
IMPORTS = winspool ole32 oleaut32
|
IMPORTS = winspool ole32 oleaut32
|
||||||
|
|
|
@ -76,7 +76,7 @@ HRESULT WINAPI PTOpenProvider(PCWSTR printer, DWORD version, HPTPROVIDER *provid
|
||||||
{
|
{
|
||||||
DWORD used_version;
|
DWORD used_version;
|
||||||
|
|
||||||
TRACE("%s, %d, %p\n", debugstr_w(printer), version, provider);
|
TRACE("%s, %ld, %p\n", debugstr_w(printer), version, provider);
|
||||||
|
|
||||||
if (version != 1) return E_INVALIDARG;
|
if (version != 1) return E_INVALIDARG;
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ HRESULT WINAPI PTOpenProviderEx(const WCHAR *printer, DWORD max_version, DWORD p
|
||||||
{
|
{
|
||||||
struct prn_provider *prov;
|
struct prn_provider *prov;
|
||||||
|
|
||||||
TRACE("%s, %d, %d, %p, %p\n", debugstr_w(printer), max_version, pref_version, provider, used_version);
|
TRACE("%s, %ld, %ld, %p, %p\n", debugstr_w(printer), max_version, pref_version, provider, used_version);
|
||||||
|
|
||||||
if (!max_version || !provider || !used_version)
|
if (!max_version || !provider || !used_version)
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
|
|
|
@ -574,7 +574,7 @@ static void set_SelectionNamespaces(IXMLDOMDocument2 *doc)
|
||||||
{
|
{
|
||||||
if (!wcscmp(str, L"xmlns") || !wcsncmp(str, L"xmlns:", 6))
|
if (!wcscmp(str, L"xmlns") || !wcsncmp(str, L"xmlns:", 6))
|
||||||
{
|
{
|
||||||
TRACE("ns[%d]: %s=%s\n", i, wine_dbgstr_w(str), wine_dbgstr_w(V_BSTR(&var)));
|
TRACE("ns[%ld]: %s=%s\n", i, wine_dbgstr_w(str), wine_dbgstr_w(V_BSTR(&var)));
|
||||||
IStream_Write(stream, str, wcslen(str) * sizeof(WCHAR), NULL);
|
IStream_Write(stream, str, wcslen(str) * sizeof(WCHAR), NULL);
|
||||||
IStream_Write(stream, L"=\"", 2 * sizeof(WCHAR), NULL);
|
IStream_Write(stream, L"=\"", 2 * sizeof(WCHAR), NULL);
|
||||||
IStream_Write(stream, V_BSTR(&var), wcslen(V_BSTR(&var)) * sizeof(WCHAR), NULL);
|
IStream_Write(stream, V_BSTR(&var), wcslen(V_BSTR(&var)) * sizeof(WCHAR), NULL);
|
||||||
|
@ -1174,7 +1174,7 @@ while (0)
|
||||||
CHECK_FIELD(DM_DITHERTYPE);
|
CHECK_FIELD(DM_DITHERTYPE);
|
||||||
CHECK_FIELD(DM_PANNINGWIDTH);
|
CHECK_FIELD(DM_PANNINGWIDTH);
|
||||||
CHECK_FIELD(DM_PANNINGHEIGHT);
|
CHECK_FIELD(DM_PANNINGHEIGHT);
|
||||||
if (fields) TRACE(" %#x", fields);
|
if (fields) TRACE(" %#lx", fields);
|
||||||
TRACE("\n");
|
TRACE("\n");
|
||||||
#undef CHECK_FIELD
|
#undef CHECK_FIELD
|
||||||
}
|
}
|
||||||
|
@ -1192,7 +1192,7 @@ static void dump_devmode(const DEVMODEW *dm)
|
||||||
TRACE("dmDriverVersion: 0x%04x\n", dm->dmDriverVersion);
|
TRACE("dmDriverVersion: 0x%04x\n", dm->dmDriverVersion);
|
||||||
TRACE("dmSize: 0x%04x\n", dm->dmSize);
|
TRACE("dmSize: 0x%04x\n", dm->dmSize);
|
||||||
TRACE("dmDriverExtra: 0x%04x\n", dm->dmDriverExtra);
|
TRACE("dmDriverExtra: 0x%04x\n", dm->dmDriverExtra);
|
||||||
TRACE("dmFields: 0x%04x\n", dm->dmFields);
|
TRACE("dmFields: 0x%04lx\n", dm->dmFields);
|
||||||
dump_fields(dm->dmFields);
|
dump_fields(dm->dmFields);
|
||||||
TRACE("dmOrientation: %d\n", dm->u1.s1.dmOrientation);
|
TRACE("dmOrientation: %d\n", dm->u1.s1.dmOrientation);
|
||||||
TRACE("dmPaperSize: %d\n", dm->u1.s1.dmPaperSize);
|
TRACE("dmPaperSize: %d\n", dm->u1.s1.dmPaperSize);
|
||||||
|
@ -1209,9 +1209,9 @@ static void dump_devmode(const DEVMODEW *dm)
|
||||||
TRACE("dmCollate: %d\n", dm->dmCollate);
|
TRACE("dmCollate: %d\n", dm->dmCollate);
|
||||||
TRACE("dmFormName: %s\n", debugstr_w(dm->dmFormName));
|
TRACE("dmFormName: %s\n", debugstr_w(dm->dmFormName));
|
||||||
TRACE("dmLogPixels %u\n", dm->dmLogPixels);
|
TRACE("dmLogPixels %u\n", dm->dmLogPixels);
|
||||||
TRACE("dmBitsPerPel %u\n", dm->dmBitsPerPel);
|
TRACE("dmBitsPerPel %lu\n", dm->dmBitsPerPel);
|
||||||
TRACE("dmPelsWidth %u\n", dm->dmPelsWidth);
|
TRACE("dmPelsWidth %lu\n", dm->dmPelsWidth);
|
||||||
TRACE("dmPelsHeight %u\n", dm->dmPelsHeight);
|
TRACE("dmPelsHeight %lu\n", dm->dmPelsHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
HRESULT WINAPI PTConvertDevModeToPrintTicket(HPTPROVIDER provider, ULONG size, PDEVMODEW dm,
|
HRESULT WINAPI PTConvertDevModeToPrintTicket(HPTPROVIDER provider, ULONG size, PDEVMODEW dm,
|
||||||
|
@ -1221,7 +1221,7 @@ HRESULT WINAPI PTConvertDevModeToPrintTicket(HPTPROVIDER provider, ULONG size, P
|
||||||
struct ticket ticket;
|
struct ticket ticket;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
TRACE("%p,%u,%p,%d,%p\n", provider, size, dm, scope, stream);
|
TRACE("%p,%lu,%p,%d,%p\n", provider, size, dm, scope, stream);
|
||||||
|
|
||||||
if (!is_valid_provider(provider) || !dm || !stream)
|
if (!is_valid_provider(provider) || !dm || !stream)
|
||||||
return E_INVALIDARG;
|
return E_INVALIDARG;
|
||||||
|
|
Loading…
Reference in New Issue