summaryrefslogtreecommitdiff
path: root/plugins/Chat/src/main.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2012-07-23 17:33:59 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2012-07-23 17:33:59 +0000
commit35d3049895752c90438cc78cdd343b148e90ced3 (patch)
tree50e4bba7844ba8bce0ca6a254877d7c98768192d /plugins/Chat/src/main.cpp
parentfb737c7b53332d45d03901465b94ecbb42a3884a (diff)
unicode
git-svn-id: http://svn.miranda-ng.org/main/trunk@1129 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Chat/src/main.cpp')
-rw-r--r--plugins/Chat/src/main.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/Chat/src/main.cpp b/plugins/Chat/src/main.cpp
index 66e0e8282f..1c46524fec 100644
--- a/plugins/Chat/src/main.cpp
+++ b/plugins/Chat/src/main.cpp
@@ -83,18 +83,18 @@ extern "C" __declspec(dllexport) int Load(void)
// set the memory & utf8 managers
mir_getLP( &pluginInfo );
- HINSTANCE hDll = LoadLibraryA("riched20.dll");
+ HINSTANCE hDll = LoadLibrary(_T("riched20.dll"));
if ( hDll ) {
- char modulePath[MAX_PATH];
- if (GetModuleFileNameA(hDll, modulePath, MAX_PATH)) {
+ TCHAR modulePath[MAX_PATH];
+ if (GetModuleFileName(hDll, modulePath, MAX_PATH)) {
DWORD dummy;
VS_FIXEDFILEINFO* vsInfo;
UINT vsInfoSize;
- DWORD size = GetFileVersionInfoSizeA(modulePath, &dummy);
+ DWORD size = GetFileVersionInfoSize(modulePath, &dummy);
BYTE* buffer = (BYTE*) mir_alloc(size);
- if (GetFileVersionInfoA(modulePath, 0, size, buffer))
- if (VerQueryValueA(buffer, "\\", (LPVOID*) &vsInfo, &vsInfoSize))
+ if (GetFileVersionInfo(modulePath, 0, size, buffer))
+ if (VerQueryValue(buffer, _T("\\"), (LPVOID*) &vsInfo, &vsInfoSize))
if (LOWORD(vsInfo->dwFileVersionMS) != 0)
bFlag= TRUE;
mir_free(buffer);
@@ -102,7 +102,7 @@ extern "C" __declspec(dllexport) int Load(void)
if ( !bFlag ) {
if (IDYES == MessageBox(0, TranslateT("Miranda could not load the Chat plugin because Microsoft Rich Edit v 3 is missing.\nIf you are using Windows 95/98/NT or WINE please upgrade your Rich Edit control.\n\nDo you want to download an update now?."),TranslateT("Information"),MB_YESNO|MB_ICONINFORMATION))
- CallService(MS_UTILS_OPENURL, 1, (LPARAM) "http://members.chello.se/matrix/re3/richupd.exe");
+ CallService(MS_UTILS_OPENURL, OUF_NEWWINDOW|OUF_TCHAR, (LPARAM) _T("http://members.chello.se/matrix/re3/richupd.exe"));
FreeLibrary(GetModuleHandleA("riched20.dll"));
return 1;
}
@@ -137,7 +137,7 @@ extern "C" __declspec(dllexport) int Unload(void)
DestroyHookableEvents();
FreeIcons();
OptionsUnInit();
- FreeLibrary(GetModuleHandleA("riched20.dll"));
+ FreeLibrary(GetModuleHandle(_T("riched20.dll")));
UnhookEvents();
return 0;
}