To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=21747





------- Additional comments from [EMAIL PROTECTED] Wed Jul 26 14:14:39 -0700 
2006 -------
The file I attached is a proposed patch, applies to file
fpicker/source/win32/filepicker/getfilenamewrapper.cxx only (gsl then ?); I
built it with 2.0.3 sources.
I checked it on Windows XP Home, using a USB stick and there it worked.
I used two functions from the Visual C++ CRT (_wgetcwd / _wchdir) and I choose
an automatic variable as a temporary buffer to store the path before calling the
standard Windows dialogs.
The temporary path buffer size is fixed to 1500 characters, so with (unpratical
I think) long paths the bug will show up again.
A better solution could have been using malloc/free for a better buffer
management, but I didn't know there in win32 interface if that was safe
(fragmentation, trashing, etc..).
According to the documentation I have with the compiler, _wgetcwd / _wchdir are
OK for Windows NT, 2000, XP and Unicode.
I'm not sure of unicows.dll effects about this on Win 98, Me, 95.

A better implementation would have been forcing a fixed path on exiting the
Windows function, but I don't know how to pick up a suitable path (the default
user path or the application start path), especially from inside win32
abstraction layer.
I can do this if someone gives me some direction, though.

To test, do as described at the beginning of the issue, but this time as soon as
OOo closes the document, the stick can be unmounted (using the icon to the
desktop lower right).


---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to