fix 240644, hang attaching file when last attachment was saved to a directory that no longer exists, r=roc,emaijala@kolumbus.fi, sr=mscott, oops forgot to address Christian's string usage review comment
authorbienvenu@nventure.com
Tue, 28 Aug 2007 17:38:54 -0700
changeset 5407 6dff4e6c8c2f75ca7adc9e35f5c7f9a3608486dc
parent 5406 684ea46aa095873cd9d6a0f9f107940a6eb85e1d
child 5408 938b730dc225317d86f03a28c9245e7692ecda88
push idunknown
push userunknown
push dateunknown
reviewersroc, emaijala, mscott, oops
bugs240644
milestone1.9a8pre
fix 240644, hang attaching file when last attachment was saved to a directory that no longer exists, r=roc,emaijala@kolumbus.fi, sr=mscott, oops forgot to address Christian's string usage review comment
widget/src/windows/nsFilePicker.cpp
--- a/widget/src/windows/nsFilePicker.cpp
+++ b/widget/src/windows/nsFilePicker.cpp
@@ -152,17 +152,17 @@ NS_IMETHODIMP nsFilePicker::ShowW(PRInt1
 
   // If no display directory, re-use the last one.
   if(initialDir.IsEmpty()) {
     // Allocate copy of last used dir.
     initialDir = mLastUsedUnicodeDirectory;
     // defaulting to cwd instead of whatever the file picker defaults to
     // is a lot faster if that default dir doesn't exist.
     if (initialDir.IsEmpty())
-      initialDir = NS_LITERAL_STRING(".");
+      initialDir.AssignLiteral(".");
   }
 
   mUnicodeFile.Truncate();
 
 #ifndef WINCE
 
   if (mMode == modeGetFolder) {
     PRUnichar dirBuffer[MAX_PATH+1];