diff options
Diffstat (limited to 'src/modules/database/database.cpp')
-rw-r--r-- | src/modules/database/database.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/modules/database/database.cpp b/src/modules/database/database.cpp index a1da139802..5fdd136497 100644 --- a/src/modules/database/database.cpp +++ b/src/modules/database/database.cpp @@ -303,15 +303,13 @@ static int getProfile(TCHAR *szProfile, size_t cch) PROFILEMANAGERDATA pd = { 0 };
if (CmdLine_GetOption(_T("ForceShowPM"))) {
LBL_Show:
- pd.szProfile = szProfile;
- pd.szProfileDir = g_profileDir;
+ pd.ptszProfile = szProfile;
+ pd.ptszProfileDir = g_profileDir;
if (!getProfileManager(&pd))
return 0;
- if (!pd.bRun) {
- CallService(MS_DB_CHECKPROFILE, WPARAM(szProfile), 0);
- return 0;
- }
+ if (!pd.bRun)
+ return CallService(MS_DB_CHECKPROFILE, WPARAM(szProfile), TRUE);
return 1;
}
|