blob: 077d40c4834bf8fb2e17977e3a7cdfa463e07e03 [file] [log] [blame]
--- 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;
}