http://bugs.winehq.org/show_bug.cgi?id=15640
Summary: Tile Studio 2.55: Can't export maps without an extension Product: Wine Version: 1.1.6 Platform: All URL: http://tilestudio.sourceforge.net/ OS/Version: All Status: UNCONFIRMED Severity: minor Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: metalbrain_coder@gmx.net
When you want to export a map, selecting Map -> Export Map you get a file dialog to type the File name and select the file type (default is "Maps (8 bit, 0 based)").
If you type a name with an extension, the map is exported without any problems, and the next time you want to export another map, you'll get the last name used in the File name field.
If you type a name without any extension, you'll get an error dialog saying: "I/O error 103", no map will be exported, and the next time you try to export, you'll get the last name you tried to use followed by an extra ".*"
http://bugs.winehq.org/show_bug.cgi?id=15640
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source
http://bugs.winehq.org/show_bug.cgi?id=15640
--- Comment #1 from Austin English austinenglish@gmail.com 2008-10-16 14:57:13 --- Please attach terminal output.
http://bugs.winehq.org/show_bug.cgi?id=15640
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- OS/Version|All |other Platform|All |Other
http://bugs.winehq.org/show_bug.cgi?id=15640
--- Comment #2 from Jaime Tejedor Gómez metalbrain_coder@gmx.net 2008-10-17 06:13:08 --- There's no extra terminal output other than the:
"fixme:commdlg:GetFileName95 Flags 0x00800000 not yet implemented"
that appears with the open file dialog.
http://bugs.winehq.org/show_bug.cgi?id=15640
--- Comment #3 from Lei Zhang thestig@google.com 2008-10-21 17:10:09 --- What happens if you perforce the same actions on Windows?
http://bugs.winehq.org/show_bug.cgi?id=15640
--- Comment #4 from Jaime Tejedor Gómez metalbrain_coder@gmx.net 2008-10-22 09:39:42 ---
What happens if you perforce the same actions on Windows?
The map is correctly exported without extension, no error shown.
http://bugs.winehq.org/show_bug.cgi?id=15640
--- Comment #5 from Jaime Tejedor Gómez metalbrain_coder@gmx.net 2009-05-16 14:09:29 --- Bug is still present in 1.1.21 , though the fixme message has stopped appearing, since the resizable dialogs have been implemented.
This bug seems to be related: http://bugs.winehq.org/show_bug.cgi?id=9548
I've made some tests, and found this in file dlls/comdlg32/filedlg.c, function FILEDLG95_OnOpen:
if (! *ext) { /* if no extension is specified with file name, then */ /* attach the extension from file filter or default one */
WCHAR *filterExt = NULL; LPWSTR lpstrFilter = NULL; static const WCHAR szwDot[] = {'.',0}; int PathLength = lstrlenW(lpstrPathAndFile);
/* Attach the dot*/ lstrcatW(lpstrPathAndFile, szwDot);
/*Get the file extension from file type filter*/ lpstrFilter = (LPWSTR) CBGetItemDataPtr(fodInfos->DlgInfos.hwndFileTypeCB,
fodInfos->ofnInfos->nFilterIndex-1);
if (lpstrFilter != (LPWSTR)CB_ERR) /* control is not empty */ filterExt = PathFindExtensionW(lpstrFilter);
if ( filterExt && *filterExt ) /* attach the file extension from file type filter*/ lstrcatW(lpstrPathAndFile, filterExt + 1); else if ( fodInfos->defext ) /* attach the default file extension*/ lstrcatW(lpstrPathAndFile, fodInfos->defext);
/* In Open dialog: if file does not exist try without extension */ if (!(fodInfos->DlgInfos.dwDlgProp & FODPROP_SAVEDLG) && !PathFileExistsW(lpstrPathAndFile)) lpstrPathAndFile[PathLength] = '\0'; }
when lpstrFilter is "*.*", it will add '.*' to the filename, causing the problem. I made an ugly hack to avoid it and it worked, adding these lines:
// Don't add any extension if filter extension is ".*" if(strcmp("L".*"",debugstr_w(filterExt))==0) lpstrPathAndFile[PathLength] = '\0';
but I'm sure there must be a proper way to do it.
http://bugs.winehq.org/show_bug.cgi?id=15640
Wolfram Sang wolfram@the-dreams.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wolfram@the-dreams.de
--- Comment #6 from Wolfram Sang wolfram@the-dreams.de 2010-06-02 02:52:33 --- I think I fixed Bug 9548 (and its dupes bug 15640 and bug 18853), just working on a testcase...
http://bugs.winehq.org/show_bug.cgi?id=15640
--- Comment #7 from Wolfram Sang wolfram@the-dreams.de 2011-01-30 07:04:52 CST --- Error is gone now. Fixed by bd0fe7d26bafebc2e51ec54d354bf1e41bc3892e.
http://bugs.winehq.org/show_bug.cgi?id=15640
Jaime Tejedor Gómez metalbrain_coder@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #8 from Jaime Tejedor Gómez metalbrain_coder@gmx.net 2011-01-31 08:13:37 CST --- Confirmed fixed.
http://bugs.winehq.org/show_bug.cgi?id=15640
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org 2011-02-04 13:20:40 CST --- Closing bugs fixed in 1.3.13.