summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-11-28 22:14:31 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-11-28 22:14:31 +0000
commit3589d3f7f7c44c285139109ec5f98f7ab807a02e (patch)
tree777d6276a8cde5c5f4b952fb57eea6f1d32a1d77
parent4286ce11a7ef21e3bf7329c58405548d7082c763 (diff)
git-svn-id: http://svn.miranda-ng.org/main/trunk@11142 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/OpenFolder/src/openFolder.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/OpenFolder/src/openFolder.cpp b/plugins/OpenFolder/src/openFolder.cpp
index e8860cecd7..5a891ce0ac 100644
--- a/plugins/OpenFolder/src/openFolder.cpp
+++ b/plugins/OpenFolder/src/openFolder.cpp
@@ -30,10 +30,10 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
static INT_PTR MenuCommand_OpenFolder(WPARAM, LPARAM)
{
TCHAR szMirandaPath[MAX_PATH];
- GetModuleFileName( GetModuleHandle(NULL), szMirandaPath, SIZEOF(szMirandaPath));
- TCHAR* p = _tcsrchr( szMirandaPath, '\\' );
- if ( p && *(++p))
- *p = 0;
+ GetModuleFileName(GetModuleHandle(NULL), szMirandaPath, SIZEOF(szMirandaPath));
+ TCHAR *p = _tcsrchr(szMirandaPath, '\\');
+ if (p)
+ p[1] = 0;
if ( GetAsyncKeyState( VK_CONTROL ) & 0x8000 )
ShellExecute(0, _T("explore"), szMirandaPath, 0, 0, SW_SHOWNORMAL);
@@ -61,21 +61,21 @@ static int ModulesLoaded(WPARAM, LPARAM)
return 0;
}
-HICON LoadIconExEx( const char* IcoLibName, int NonIcoLibIcon )
+HICON LoadIconExEx(const char* IcoLibName, int NonIcoLibIcon)
{
char szSettingName[64];
- mir_snprintf( szSettingName, sizeof( szSettingName ), "%s_%s", OPENFOLDER_MODULE_NAME, IcoLibName );
+ mir_snprintf(szSettingName, sizeof(szSettingName), "%s_%s", OPENFOLDER_MODULE_NAME, IcoLibName);
return Skin_GetIcon(szSettingName);
}
-extern "C" __declspec( dllexport ) PLUGININFOEX* MirandaPluginInfoEx( DWORD mirandaVersion )
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
return &pluginInfoEx;
}
/////////////////////////////////////////////////////////////////////////////////////////
-extern "C" int __declspec( dllexport ) Load()
+extern "C" int __declspec(dllexport) Load()
{
mir_getLP(&pluginInfoEx);
@@ -110,7 +110,7 @@ extern "C" int __declspec( dllexport ) Load()
/////////////////////////////////////////////////////////////////////////////////////////
-extern "C" int __declspec( dllexport ) Unload()
+extern "C" int __declspec(dllexport) Unload()
{
DestroyServiceFunction(hServiceOpenFolder);
return 0;