Wireshark-bugs: [Wireshark-bugs] [Bug 2478] Open file dialog always displayed when clicking anyw

Date: Tue, 22 Apr 2008 07:59:31 -0700 (PDT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2478


Peter Johansson <PeterJohansson73@xxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |PeterJohansson73@xxxxxxxxx




--- Comment #1 from Peter Johansson <PeterJohansson73@xxxxxxxxx>  2008-04-22 07:59:30 GMT ---
I just had a brief look at this and the problem seems to be in the function
win32_open_file in the file file_dlg_win32.c.

The call chain when clicking on the file open dialog in the welcome window is:

file_open_cmd_cb
       |
    file_open_cmd
          |
        win32_open_file

Once execution has returned from win32_open_file, any new left button mouse
click will render a new call to file_open_cmd_cb and then it all starts over
again. I made a change to capture_file_dlg.c in the function file_open_cmd
where I replaced the initial "#if _WIN32" with "#if 0" (hence the GTK file open
dialog is used instead), then it works as intended. That is, once you have
pressed on the "Cancel" button in the file open dialog, the welcome window
behaves as intended. This is a Windows specific issue.

I have however not been able to spot the cause of the problem in the
win32_open_file function.


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.