Files
MINGW-packages/mingw-w64-winico/002-Fix-pointer-cast.patch
2014-10-25 14:22:34 +02:00

29 lines
725 B
Diff
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
--- winico.ori/tkwinico.c 2014-10-25 04:55:46.706780200 +0200
+++ winico-0.6/tkwinico.c 2014-10-25 04:54:10.611777600 +0200
@@ -1048,6 +1048,13 @@
}
static int
+GetLong(long long theint, char *buffer)
+{
+ sprintf(buffer,"0x%I64x",theint);
+ return strlen(buffer);
+}
+
+static int
GetIntDec(long theint, char *buffer)
{
sprintf(buffer,"%d",theint);
@@ -1142,7 +1149,11 @@
}
case 'H': {
before++;
+#ifdef _WIN64
+ len = GetLong((long long)icoPtr->hwndFocus, buffer);
+#else
len = GetInt((long)icoPtr->hwndFocus, buffer);
+#endif
ptr = buffer;
break;
}