diff options
author | Jason Rumney <jasonr@gnu.org> | 2007-06-10 23:38:37 +0000 |
---|---|---|
committer | Jason Rumney <jasonr@gnu.org> | 2007-06-10 23:38:37 +0000 |
commit | 843d24582cc0f542fdeb858dd004dc4cb18b761c (patch) | |
tree | c06f1301fa6f3fce6982f55469a74d99e9e1e5c9 /src/w32fns.c | |
parent | 7940bf7dc0a572e6d05bb198c738b436657210f1 (diff) | |
download | emacs-843d24582cc0f542fdeb858dd004dc4cb18b761c.tar.gz |
(Fx_file_dialog): Take size from struct not pointer.
Diffstat (limited to 'src/w32fns.c')
-rw-r--r-- | src/w32fns.c | 4 |
1 files changed, 2 insertions, 2 deletions
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: |