summaryrefslogtreecommitdiff
path: root/plugins/AvatarHistory/src/AvatarHistory.cpp
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2013-03-13 08:00:41 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2013-03-13 08:00:41 +0000
commit11fcecff7c310c2cc10bda2ab2fa2daf525be571 (patch)
tree86fb20fc1ce5e243dd9a973f84b9f1ae6a85c1b4 /plugins/AvatarHistory/src/AvatarHistory.cpp
parentcb68918922e0d297cc57c4b00fcc42ceaf141965 (diff)
- another portion of '#ifdef UNICODE' clean up
git-svn-id: http://svn.miranda-ng.org/main/trunk@3993 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AvatarHistory/src/AvatarHistory.cpp')
-rw-r--r--plugins/AvatarHistory/src/AvatarHistory.cpp23
1 files changed, 2 insertions, 21 deletions
diff --git a/plugins/AvatarHistory/src/AvatarHistory.cpp b/plugins/AvatarHistory/src/AvatarHistory.cpp
index 4c33dfa38a..27b6c3b579 100644
--- a/plugins/AvatarHistory/src/AvatarHistory.cpp
+++ b/plugins/AvatarHistory/src/AvatarHistory.cpp
@@ -315,17 +315,8 @@ void ErrorExit(HANDLE hContact,LPTSTR lpszFunction)
LocalFree(lpDisplayBuf);
}
-#ifdef _UNICODE
-
#define CS "%S"
-#else
-
-#define CS "%s"
-
-#endif
-
-
TCHAR * GetExtension(TCHAR *file)
{
if(file == NULL) return _T("");
@@ -734,13 +725,9 @@ BOOL CreateShortcut(TCHAR *file, TCHAR *shortcut)
if (SUCCEEDED(hr))
{
-#ifdef _UNICODE
+
hr = ppf->Save(shortcut, TRUE);
-#else
- WCHAR tmp[MAX_PATH];
- MultiByteToWideChar(CP_ACP, 0, shortcut, -1, tmp, MAX_PATH);
- hr = ppf->Save(tmp, TRUE);
-#endif
+
ppf->Release();
}
@@ -768,13 +755,7 @@ BOOL ResolveShortcut(TCHAR *shortcut, TCHAR *file)
if (SUCCEEDED(hr))
{
-#ifdef _UNICODE
hr = ppf->Load(shortcut, STGM_READ);
-#else
- WCHAR tmp[MAX_PATH];
- MultiByteToWideChar(CP_ACP, 0, shortcut, -1, tmp, MAX_PATH);
- hr = ppf->Load(tmp, STGM_READ);
-#endif
if (SUCCEEDED(hr))
{