From: Jason Rumney Date: Sun, 10 Jun 2007 23:29:37 +0000 (+0000) Subject: (Fx_file_dialog): Take size from struct not pointer. X-Git-Tag: emacs-pretest-22.1.90~1361 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f9de989afe81556afb49d655a8b7bda179e6c4e2;p=emacs.git (Fx_file_dialog): Take size from struct not pointer. --- diff --git a/src/ChangeLog b/src/ChangeLog index 5e53763932a..7085858eccb 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2007-06-10 Jason Rumney + + * w32fns.c (Fx_file_dialog): Take size from struct not pointer. + 2007-06-06 Jason Rumney * s/ms-w32.h: Don't define HAVE_TZNAME. diff --git a/src/w32fns.c b/src/w32fns.c index 8cac4ea2376..fd8df29affa 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -7902,9 +7902,9 @@ If ONLY-DIR-P is non-nil, the user can only select directories. */) /* 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: