diff options
author | George Hazan <george.hazan@gmail.com> | 2013-02-28 17:02:58 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-02-28 17:02:58 +0000 |
commit | ea922a1ddd0526d37c6a299ab6260729612a8dfa (patch) | |
tree | 56bc15af2b2b173b4368ef3c1a6a065267a23ccf /src/modules/utils/path.cpp | |
parent | 7b44e3c9879ed7cb1ab3f64b829e0c0b09c6ffae (diff) |
new template, VARST, to hold the result of calling Utils_ReplaceVarsT()
git-svn-id: http://svn.miranda-ng.org/main/trunk@3806 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/utils/path.cpp')
-rw-r--r-- | src/modules/utils/path.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/modules/utils/path.cpp b/src/modules/utils/path.cpp index 8c9cfbc6fe..0e9f38eb42 100644 --- a/src/modules/utils/path.cpp +++ b/src/modules/utils/path.cpp @@ -388,11 +388,10 @@ XCHAR *ReplaceVariables(XCHAR *str, REPLACEVARSDATA *data) static INT_PTR replaceVars(WPARAM wParam, LPARAM lParam)
{
REPLACEVARSDATA *data = (REPLACEVARSDATA *)lParam;
- if ( !(data->dwFlags & RVF_UNICODE))
- return (INT_PTR)ReplaceVariables<char>((char *)wParam, data);
+ if (data->dwFlags & RVF_UNICODE)
+ return (INT_PTR)ReplaceVariables<WCHAR>((WCHAR *)wParam, data);
-
- return (INT_PTR)ReplaceVariables<WCHAR>((WCHAR *)wParam, data);
+ return (INT_PTR)ReplaceVariables<char>((char *)wParam, data);
}
int InitPathUtils(void)
|