diff --git a/profile/src/nsProfileAccess.cpp b/profile/src/nsProfileAccess.cpp index ff705a2c70b2..2df957659b80 100644 --- a/profile/src/nsProfileAccess.cpp +++ b/profile/src/nsProfileAccess.cpp @@ -92,7 +92,11 @@ nsProfileAccess::nsProfileAccess() // Get the old moz registry nsCOMPtr mozRegFile; -#if defined(XP_PC) +#if defined(XP_OS2) + NS_GetSpecialDirectory(NS_OS2_DIR, getter_AddRefs(mozRegFile)); + if (mozRegFile) + mozRegFile->Append(WIN_MOZ_REG); +#elif defined(XP_PC) NS_GetSpecialDirectory(NS_WIN_WINDOWS_DIR, getter_AddRefs(mozRegFile)); if (mozRegFile) mozRegFile->Append(WIN_MOZ_REG);