Fixes for Windows CE. b=418662, r=bsmedberg, a=damons
git-svn-id: svn://10.0.0.236/trunk@246329 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -174,7 +174,7 @@ static nsresult GetWindowsFolder(int folder, nsILocalFile** aFile)
|
||||
//----------------------------------------------------------------------------------------
|
||||
{
|
||||
WCHAR path[MAX_PATH + 2];
|
||||
HRESULT result = ::SHGetSpecialFolderPathW(NULL, path, folder, true);
|
||||
HRESULT result = SHGetSpecialFolderPathW(NULL, path, folder, true);
|
||||
|
||||
if (!SUCCEEDED(result))
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
@@ -2869,7 +2869,9 @@ nsLocalFile::EnsureShortPath()
|
||||
{
|
||||
if (!mShortWorkingPath.IsEmpty())
|
||||
return;
|
||||
|
||||
#ifdef WINCE
|
||||
mShortWorkingPath.Assign(mWorkingPath);
|
||||
#else
|
||||
WCHAR thisshort[MAX_PATH];
|
||||
DWORD thisr = ::GetShortPathNameW(mWorkingPath.get(), thisshort,
|
||||
sizeof(thisshort));
|
||||
@@ -2878,6 +2880,7 @@ nsLocalFile::EnsureShortPath()
|
||||
mShortWorkingPath.Assign(thisshort);
|
||||
else
|
||||
mShortWorkingPath.Assign(mWorkingPath);
|
||||
#endif
|
||||
}
|
||||
|
||||
// nsIHashable
|
||||
|
||||
Reference in New Issue
Block a user