See: http://lxr.mozilla.org/seamonkey/source/xpcom/io/nsSpecialSystemDirectory.cpp#82 7 We can use the API WinQueryActiveDesktopDirectory to get this value.
This was code originally done by Jessica. We need to add this change.
Created attachment 11411 [details] [diff] [review] Made changes so the OS2_DesktopDirectory is no longer hardcoded.
Doug, could you please review the attached diff?
I am not an os2 hacker (sorry). It looks fine to me if you say so. 2 questions, WinQueryActiveDesktopPathname() makes to append a slash and a null? Are you sure that you are not clobbering the trailing char? Also, shouldn't you check for a buffer overwrite?
Created attachment 11520 [details] [diff] [review] Thanks for the update, Doug. How does the change look now?
Doug, Are you ok w/Jessica's latest changes? Thanks, Skip
I checked in this fix.
Verified this is fixed