Commit f9de989a authored by Jason Rumney's avatar Jason Rumney

(Fx_file_dialog): Take size from struct not pointer.

parent 6a29399e
2007-06-10 Jason Rumney <jasonr@gnu.org>
* w32fns.c (Fx_file_dialog): Take size from struct not pointer.
2007-06-06 Jason Rumney <jasonr@gnu.org>
* s/ms-w32.h: Don't define HAVE_TZNAME.
......
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment