From dbaac39c8d0209b30acb88ae97a872dedbabf10c Mon Sep 17 00:00:00 2001 From: "mkaply%us.ibm.com" Date: Fri, 7 Jul 2000 21:56:48 +0000 Subject: [PATCH] #42637 r = sspitzer, a = brendan OS/2 bringup - Our profile is located in the OS2 directory --- profile/src/nsProfile.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/profile/src/nsProfile.cpp b/profile/src/nsProfile.cpp index 74f1aba4531..c52672f97ee 100644 --- a/profile/src/nsProfile.cpp +++ b/profile/src/nsProfile.cpp @@ -1279,8 +1279,12 @@ NS_IMETHODIMP nsProfile::MigrateProfileInfo() char oldRegFile[_MAX_LENGTH] = {'\0'}; #ifdef XP_PC +#ifdef XP_OS2 + nsSpecialSystemDirectory system(nsSpecialSystemDirectory::OS2_OS2Directory); +#else // Registry file has been traditionally stored in the windows directory (XP_PC). nsSpecialSystemDirectory systemDir(nsSpecialSystemDirectory::Win_WindowsDirectory); +#endif // Append the name of the old registry to the path obtained. PL_strcpy(oldRegFile, systemDir.GetNativePathCString());