Commit 7d8e377a authored by Kevin Koltzau's avatar Kevin Koltzau Committed by Alexandre Julliard

Fix warnings in 64bit.

parent d664711c
......@@ -98,7 +98,7 @@ typedef struct {
static opened_printer_t **printer_handles;
static int nb_printer_handles;
static long next_job_id = 1;
static LONG next_job_id = 1;
static DWORD (WINAPI *GDI_CallDeviceCapabilities16)( LPCSTR lpszDevice, LPCSTR lpszPort,
WORD fwCapability, LPSTR lpszOutput,
......@@ -612,7 +612,7 @@ void WINSPOOL_LoadSystemPrinters(void)
*/
static HANDLE get_opened_printer_entry( LPCWSTR name )
{
UINT handle = nb_printer_handles, i;
UINT_PTR handle = nb_printer_handles, i;
queue_t *queue = NULL;
opened_printer_t *printer;
......@@ -681,7 +681,7 @@ end:
*/
static opened_printer_t *get_opened_printer(HANDLE hprn)
{
int idx = (int)hprn;
UINT_PTR idx = (UINT_PTR)hprn;
opened_printer_t *ret = NULL;
EnterCriticalSection(&printer_handles_cs);
......@@ -1655,7 +1655,7 @@ HANDLE WINAPI AddPrinterA(LPSTR pName, DWORD Level, LPBYTE pPrinter)
*/
BOOL WINAPI ClosePrinter(HANDLE hPrinter)
{
int i = (int)hPrinter;
UINT_PTR i = (UINT_PTR)hPrinter;
opened_printer_t *printer = NULL;
BOOL ret = FALSE;
......
......@@ -25,7 +25,7 @@
#include "windef.h"
#include "winldap.h"
#define LBER_ERROR (~0UL)
#define LBER_ERROR (~0U)
BerElement *ber_alloc_t( INT options )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment