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:
parent
c420bca55c
commit
7224799221
@ -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 =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user