changeset 81297:812aa5cd4e41

(Fx_file_dialog): Take size from struct not pointer.
author Jason Rumney <jasonr@gnu.org>
date Sun, 10 Jun 2007 23:37:43 +0000
parents 6d24f0746b22
children e4cbe0cfdf59
files src/w32fns.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/w32fns.c	Sun Jun 10 16:15:10 2007 +0000
+++ b/src/w32fns.c	Sun Jun 10 23:37:43 2007 +0000
@@ -7902,9 +7902,9 @@
     /* Apparently NT4 crashes if you give it an unexpected size.
        I'm not sure about Windows 9x, so play it safe.  */
     if (w32_major_version > 4 && w32_major_version < 95)
-      file_details->lStructSize = sizeof (new_file_details);
+      file_details->lStructSize = sizeof (NEWOPENFILENAME);
     else
-      file_details->lStructSize = sizeof (file_details);
+      file_details->lStructSize = sizeof (OPENFILENAME);
 
     file_details->hwndOwner = FRAME_W32_WINDOW (f);
     /* Undocumented Bug in Common File Dialog: