Mercurial > emacs
changeset 77995:04fafc2fc785
(Fx_file_dialog): Take size from struct not pointer.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Sun, 10 Jun 2007 23:28:55 +0000 |
parents | ce572ff13002 |
children | de0dc7755f94 |
files | src/w32fns.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/w32fns.c Sat Jun 09 12:54:46 2007 +0000 +++ b/src/w32fns.c Sun Jun 10 23:28:55 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: