summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2012-01-27 21:44:29 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2012-01-27 21:44:29 (GMT)
commit13eebba3890cf7cf93418d58e4673a824734bd90 (patch)
tree571f261f1ceea194c5991819a8bf1742a0fb6876
parent527b630940313594ce8c6ce559073f309b8d8d8c (diff)
downloadtk-13eebba3890cf7cf93418d58e4673a824734bd90.zip
tk-13eebba3890cf7cf93418d58e4673a824734bd90.tar.gz
tk-13eebba3890cf7cf93418d58e4673a824734bd90.tar.bz2
[Bug 3480471]: tk_getOpenFile crashes on Win64
-rw-r--r--ChangeLog4
-rw-r--r--win/tkWinDialog.c8
2 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index a775e7c..dd2bd82 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-01-27 Jan Nijtmans <nijtmans@users.sf.net>
+
+ * win/tkWinDialog.c: [Bug 3480471]: tk_getOpenFile crashes on Win64
+
2012-01-26 Francois Vogel <fvogelnew1@free.fr>
* generic/tkTextDisp.c: [Bug-1754043] and [Bug-2321450]: When
diff --git a/win/tkWinDialog.c b/win/tkWinDialog.c
index 6b50215..64fca8b 100644
--- a/win/tkWinDialog.c
+++ b/win/tkWinDialog.c
@@ -1017,10 +1017,10 @@ OFNHookProcW(
ofnData->dynFileBuffer = (char *) buffer;
}
- SendMessageW(hdlg, CDM_GETFOLDERPATH, dirsize, PTR2INT(buffer));
+ SendMessageW(hdlg, CDM_GETFOLDERPATH, dirsize, (LPARAM) buffer);
buffer += dirsize;
- SendMessageW(hdlg, CDM_GETSPEC, selsize, PTR2INT(buffer));
+ SendMessageW(hdlg, CDM_GETSPEC, selsize, (LPARAM) buffer);
/*
* If there are multiple files, delete the quotes and change
@@ -1565,9 +1565,9 @@ OFNHookProcA(
ofnData->dynFileBuffer = buffer;
}
- SendMessage(hdlg, CDM_GETFOLDERPATH, dirsize, PTR2INT(buffer));
+ SendMessage(hdlg, CDM_GETFOLDERPATH, dirsize, (LPARAM) buffer);
buffer += dirsize;
- SendMessage(hdlg, CDM_GETSPEC, selsize, PTR2INT(buffer));
+ SendMessage(hdlg, CDM_GETSPEC, selsize, (LPARAM) buffer);
/*
* If there are multiple files, delete the quotes and change