Xming: Fix warnings in winClipboardFlushXEvents()
winclipboardxevents.c: In function ‘winClipboardFlushXEvents’: winclipboardxevents.c:225: warning: format ‘%08x’ expects type ‘unsigned int’, but argument 2 has type ‘DWORD’ winclipboardxevents.c:266: warning: format ‘%08x’ expects type ‘unsigned int’, but argument 2 has type ‘DWORD’ winclipboardxevents.c:619: warning: pointer targets in passing argument 1 of ‘strcat’ differ in signedness winclipboardxevents.c:659: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness winclipboardxevents.c:669: warning: pointer targets in passing argument 3 of ‘MultiByteToWideChar’ differ in signedness winclipboardxevents.c:690: warning: pointer targets in passing argument 3 of ‘MultiByteToWideChar’ differ in signedness winclipboardxevents.c:698: warning: pointer targets in passing argument 1 of ‘strdup’ differ in signedness Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
This commit is contained in:
parent
44c8b449d2
commit
20510e5100
@ -76,7 +76,7 @@ winClipboardFlushXEvents (HWND hwnd,
|
||||
XEvent event;
|
||||
XSelectionEvent eventSelection;
|
||||
unsigned long ulReturnBytesLeft;
|
||||
unsigned char *pszReturnData = NULL;
|
||||
char *pszReturnData = NULL;
|
||||
char *pszGlobalData = NULL;
|
||||
int iReturn;
|
||||
HGLOBAL hGlobal = NULL;
|
||||
@ -221,7 +221,7 @@ winClipboardFlushXEvents (HWND hwnd,
|
||||
if (!OpenClipboard (hwnd))
|
||||
{
|
||||
ErrorF ("winClipboardFlushXEvents - SelectionRequest - "
|
||||
"OpenClipboard () failed: %08x\n",
|
||||
"OpenClipboard () failed: %08lx\n",
|
||||
GetLastError ());
|
||||
|
||||
/* Abort */
|
||||
@ -262,7 +262,7 @@ winClipboardFlushXEvents (HWND hwnd,
|
||||
if (!hGlobal)
|
||||
{
|
||||
ErrorF ("winClipboardFlushXEvents - SelectionRequest - "
|
||||
"GetClipboardData () failed: %08x\n",
|
||||
"GetClipboardData () failed: %08lx\n",
|
||||
GetLastError ());
|
||||
|
||||
/* Abort */
|
||||
|
Loading…
Reference in New Issue
Block a user