https://bugs.winehq.org/show_bug.cgi?id=49935
Bug ID: 49935 Summary: mismatch behavior in API function GetOpenFileName Product: Wine Version: 5.0 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: comdlg32 Assignee: wine-bugs@winehq.org Reporter: ch.panel@free.fr Distribution: ---
GetOpenFileName with filter show all files instead of filtering files : ex: ("PDF files|*.PDF" as filter show not only PDF files. We have to validate the dialog for the filter to oper.
https://bugs.winehq.org/show_bug.cgi?id=49935
Christian PANEL ch.panel@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |Ubuntu
https://bugs.winehq.org/show_bug.cgi?id=49935
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEEDINFO Ever confirmed|0 |1
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- Please attach code sample that shows how you're calling this function.
https://bugs.winehq.org/show_bug.cgi?id=49935
--- Comment #2 from Christian PANEL ch.panel@free.fr --- Created attachment 68481 --> https://bugs.winehq.org/attachment.cgi?id=68481 code example
https://bugs.winehq.org/show_bug.cgi?id=49935
--- Comment #3 from Christian PANEL ch.panel@free.fr --- sorry not used to bugzilla...
here is the simple code : I create 3 files in D:\ TEXT1.TXT TEXT2.TXT ANOTHER.TXT 3 files are shown with wine only the first 2 with windows
#include <windows.h> #include <Commdlg.h> // // Gobal Variables and declarations. // OPENFILENAME ofn ; // a another memory buffer to contain the file name char szFile[100] ="TEXT*.TXT" ; int WINAPI WinMain( HINSTANCE hInstance , HINSTANCE hPrevInstance , LPSTR lpCmdLine , int nCmdShow ) {
// open a file name ZeroMemory( &ofn , sizeof( ofn)); ofn.lStructSize = sizeof ( ofn ); ofn.hwndOwner = NULL ; ofn.lpstrFile = szFile ; //ofn.lpstrFile[0] = '\0'; ofn.nMaxFile = sizeof( szFile ); ofn.lpstrFilter = "Special Text\0*.TXT\0"; ofn.nFilterIndex =0; ofn.lpstrFileTitle = NULL ; ofn.nMaxFileTitle = 0 ; ofn.lpstrInitialDir="D:\" ; ofn.Flags = OFN_PATHMUSTEXIST|OFN_FILEMUSTEXIST ; GetOpenFileName( &ofn );
// Now simpley display the file name MessageBox ( NULL , ofn.lpstrFile , "File Name" , MB_OK); return 0; }
thanks for all wine team for his wonderful work
christian
https://bugs.winehq.org/show_bug.cgi?id=49935
--- Comment #4 from Christian PANEL ch.panel@free.fr --- Comment on attachment 68481 --> https://bugs.winehq.org/attachment.cgi?id=68481 code example
https://bugs.winehq.org/show_bug.cgi?id=49935
Christian PANEL ch.panel@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #68481|0 |1 is obsolete| |
https://bugs.winehq.org/show_bug.cgi?id=49935
--- Comment #5 from Christian PANEL ch.panel@free.fr --- still present in wine 6.0
https://bugs.winehq.org/show_bug.cgi?id=49935
Linards linards.liepins@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |linards.liepins@gmail.com
--- Comment #6 from Linards linards.liepins@gmail.com --- Issue still present in latest wine?
https://bugs.winehq.org/show_bug.cgi?id=49935
--- Comment #7 from Christian PANEL ch.panel@free.fr --- I have made a test this day with wine 6.0.1 : the mismatch behavior seems to have disappeared.
https://bugs.winehq.org/show_bug.cgi?id=49935
Christian PANEL ch.panel@free.fr changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Resolution|--- |FIXED
https://bugs.winehq.org/show_bug.cgi?id=49935
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 6.12.