diff options
author | George Hazan <george.hazan@gmail.com> | 2013-03-01 22:15:29 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-03-01 22:15:29 +0000 |
commit | ec4498ee255a018ccb16061de4594618e7ab5690 (patch) | |
tree | 4d11ae3444c95fba70568b56897acee497a7e6f9 /plugins/Clist_modern/src/modern_clcopts.cpp | |
parent | 12012a3ea4d58c6624f8065c2ca2afb96090b70f (diff) |
service call replaced with helper: MS_UTILS_PATHTORELATIVE
git-svn-id: http://svn.miranda-ng.org/main/trunk@3826 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_clcopts.cpp')
-rw-r--r-- | plugins/Clist_modern/src/modern_clcopts.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/Clist_modern/src/modern_clcopts.cpp b/plugins/Clist_modern/src/modern_clcopts.cpp index 8f8b550683..107a46958f 100644 --- a/plugins/Clist_modern/src/modern_clcopts.cpp +++ b/plugins/Clist_modern/src/modern_clcopts.cpp @@ -677,13 +677,10 @@ static INT_PTR CALLBACK DlgProcStatusBarBkgOpts(HWND hwndDlg, UINT msg, WPARAM w {
char str[MAX_PATH],strrel[MAX_PATH];
GetDlgItemTextA(hwndDlg,IDC_FILENAME,str,SIZEOF(str));
- if ( ServiceExists(MS_UTILS_PATHTORELATIVE)) {
- if (CallService(MS_UTILS_PATHTORELATIVE, (WPARAM)str, (LPARAM)strrel))
- db_set_s(NULL,"StatusBar","BkBitmap",strrel);
- else db_set_s(NULL,"StatusBar","BkBitmap",str);
- }
- else db_set_s(NULL,"StatusBar","BkBitmap",str);
-
+ if ( PathToRelative(str, strrel))
+ db_set_s(NULL,"StatusBar","BkBitmap",strrel);
+ else
+ db_set_s(NULL,"StatusBar","BkBitmap",str);
}
{
WORD flags = 0;
|