comparison src/w32fns.c @ 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 742ee8b5b284
children f9eb7f243bdc cc587bfd19ca e9f94688a064
comparison
equal deleted inserted replaced
77994:ce572ff13002 77995:04fafc2fc785
7900 7900
7901 bzero (&new_file_details, sizeof (new_file_details)); 7901 bzero (&new_file_details, sizeof (new_file_details));
7902 /* Apparently NT4 crashes if you give it an unexpected size. 7902 /* Apparently NT4 crashes if you give it an unexpected size.
7903 I'm not sure about Windows 9x, so play it safe. */ 7903 I'm not sure about Windows 9x, so play it safe. */
7904 if (w32_major_version > 4 && w32_major_version < 95) 7904 if (w32_major_version > 4 && w32_major_version < 95)
7905 file_details->lStructSize = sizeof (new_file_details); 7905 file_details->lStructSize = sizeof (NEWOPENFILENAME);
7906 else 7906 else
7907 file_details->lStructSize = sizeof (file_details); 7907 file_details->lStructSize = sizeof (OPENFILENAME);
7908 7908
7909 file_details->hwndOwner = FRAME_W32_WINDOW (f); 7909 file_details->hwndOwner = FRAME_W32_WINDOW (f);
7910 /* Undocumented Bug in Common File Dialog: 7910 /* Undocumented Bug in Common File Dialog:
7911 If a filter is not specified, shell links are not resolved. */ 7911 If a filter is not specified, shell links are not resolved. */
7912 file_details->lpstrFilter = "All Files (*.*)\0*.*\0Directories\0*|*\0\0"; 7912 file_details->lpstrFilter = "All Files (*.*)\0*.*\0Directories\0*|*\0\0";