On windows CE, some devices run very slowly if you write data to /Windows. Mike Calligaro suggests that this is a compaction problem in non-native Windows Mobile 5 devices. The solution is to move the profile directory to the same directory as the application. WINCE ONLY

git-svn-id: svn://10.0.0.236/trunk@200074 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dougt%meer.net 2006-06-16 00:46:00 +00:00
parent c420bca55c
commit 7224799221

View File

@ -376,7 +376,9 @@ NS_METHOD nsAppFileLocationProvider::GetProductDirectory(nsILocalFile **aLocalFi
rv = directoryService->Get(NS_OS2_HOME_DIR, NS_GET_IID(nsILocalFile), getter_AddRefs(localDir));
if (NS_FAILED(rv)) return rv;
#elif defined(WINCE)
rv = NS_NewNativeLocalFile(nsDependentCString("\\Windows"), PR_TRUE, getter_AddRefs(localDir));
directoryService->Get(NS_XPCOM_CURRENT_PROCESS_DIR, NS_GET_IID(nsILocalFile), getter_AddRefs(localDir));
if (localDir)
rv = localFile->AppendNative("profile");
if (NS_FAILED(rv)) return rv;
#elif defined(XP_WIN)
nsCOMPtr<nsIProperties> directoryService =