summaryrefslogtreecommitdiff
path: root/plugins/StatusPlugins
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-06-15 20:04:13 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-06-15 20:04:13 +0000
commite521b812384a0e93f48e078c6cb248913dcc893a (patch)
tree13b1de3e9bef13a48af0318f1fd338915dd69e9a /plugins/StatusPlugins
parentae481600939fb5420b80a8a7ef84f0ce9d6b3356 (diff)
another portion of "#ifsef Unicode" removal
git-svn-id: http://svn.miranda-ng.org/main/trunk@437 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/StatusPlugins')
-rw-r--r--plugins/StatusPlugins/StartupStatus/options.cpp23
-rw-r--r--plugins/StatusPlugins/commonstatus.h4
2 files changed, 5 insertions, 22 deletions
diff --git a/plugins/StatusPlugins/StartupStatus/options.cpp b/plugins/StatusPlugins/StartupStatus/options.cpp
index 3aef57390c..992fe13701 100644
--- a/plugins/StatusPlugins/StartupStatus/options.cpp
+++ b/plugins/StatusPlugins/StartupStatus/options.cpp
@@ -185,33 +185,23 @@ HRESULT CreateLink(TSettingsList& protoSettings)
TCHAR path[MAX_PATH];
GetModuleFileName(NULL, path, SIZEOF(path));
psl->SetPath(path);
- #if defined( _UNICODE )
+
TCHAR* p = mir_a2t( desc );
psl->SetDescription( p );
mir_free( p );
p = mir_a2t( args );
psl->SetArguments( p );
mir_free( p );
- #else
- psl->SetDescription(desc);
- psl->SetArguments(args);
- #endif
-
+
// Query IShellLink for the IPersistFile interface for saving the
// shortcut in persistent storage.
IPersistFile* ppf;
hres = psl->QueryInterface(IID_IPersistFile, ( void** )&ppf);
if (SUCCEEDED(hres)) {
- #if defined( _UNICODE )
- WCHAR* wsz = savePath;
- #else
- WCHAR wsz[MAX_PATH];
-
- // Ensure that the string is ANSI.
- MultiByteToWideChar(CP_ACP, 0, savePath, -1, wsz, MAX_PATH);
- #endif
+ WCHAR* wsz = savePath;
+
// Save the link by calling IPersistFile::Save.
hres = ppf->Save(wsz, TRUE);
ppf->Release();
@@ -959,11 +949,8 @@ int OptionsInit(WPARAM wparam,LPARAM lparam)
}
// from: http://www.codeproject.com/winhelp/msdnintegrator/
-#ifdef _UNICODE
+
static const CHAR _szSpecialFolderPath[] = "SHGetSpecialFolderPathW";
-#else
- static const CHAR _szSpecialFolderPath[] = "SHGetSpecialFolderPathA";
-#endif
BOOL MyGetSpecialFolderPath(HWND hwndOwner, LPTSTR lpszPath, int nFolder, BOOL fCreate)
{
diff --git a/plugins/StatusPlugins/commonstatus.h b/plugins/StatusPlugins/commonstatus.h
index a0a46c2476..5c0a531d0c 100644
--- a/plugins/StatusPlugins/commonstatus.h
+++ b/plugins/StatusPlugins/commonstatus.h
@@ -21,10 +21,6 @@
#ifndef COMMONSTATUSHEADER
#define COMMONSTATUSHEADER
-#if defined( UNICODE ) && !defined( _UNICODE )
- #define _UNICODE
-#endif
-
#define MIRANDA_VER 0x0A00
#define _CRT_SECURE_NO_WARNINGS