summaryrefslogtreecommitdiff
path: root/MySpace
diff options
context:
space:
mode:
Diffstat (limited to 'MySpace')
-rw-r--r--MySpace/MySpace.cpp2
-rw-r--r--MySpace/menu.cpp4
-rw-r--r--MySpace/options.cpp8
-rw-r--r--MySpace/version.h2
4 files changed, 11 insertions, 5 deletions
diff --git a/MySpace/MySpace.cpp b/MySpace/MySpace.cpp
index e9c9276..9fac337 100644
--- a/MySpace/MySpace.cpp
+++ b/MySpace/MySpace.cpp
@@ -129,7 +129,7 @@ extern "C" __declspec (dllexport) int Load(PLUGINLINK *link) {
if (str1 != NULL && strlen(str1+1) > 4) {
strncpy(MODULE, str1+1, strlen(str1+1)-4);
MODULE[strlen(str1+1)-3] = 0;
- }
+ }
CharUpperA(MODULE);
}
diff --git a/MySpace/menu.cpp b/MySpace/menu.cpp
index d23b94e..d3db193 100644
--- a/MySpace/menu.cpp
+++ b/MySpace/menu.cpp
@@ -52,7 +52,7 @@ void InitMenu() {
menu.hIcon = (HICON)LoadImage(hInst, MAKEINTRESOURCE(IDI_MYSPACE), IMAGE_ICON, 0, 0, 0);
hServiceMenuMain = CreateProtoServiceFunction(MODULE, "/MainMenu", MainMenuService);
- menu.ptszName = TranslateT(MODULE);
+ menu.ptszName = TranslateTS(MODULE);
mir_snprintf(buff, 512, "%s%s", MODULE, "/MainMenu");
menu.pszService = buff;
menu.position = 0;
@@ -60,7 +60,7 @@ void InitMenu() {
// contact menu item
hServiceMenuContact = CreateProtoServiceFunction(MODULE, "/ContactMenu", ContactMenuService);
- menu.ptszName = TranslateT(MODULE);
+ menu.ptszName = TranslateTS(MODULE);
mir_snprintf(buff, 512, "%s%s", MODULE, "/ContactMenu");
menu.pszService = buff;
menu.position = 0;
diff --git a/MySpace/options.cpp b/MySpace/options.cpp
index 308a5ca..5d3077c 100644
--- a/MySpace/options.cpp
+++ b/MySpace/options.cpp
@@ -114,7 +114,13 @@ int OptInit(WPARAM wParam, LPARAM lParam) {
odp.hInstance = hInst;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT1);
- odp.ptszTitle = TranslateTS(MODULE);
+ TCHAR buff[256];
+#ifdef _UNICODE
+ MultiByteToWideChar(code_page, 0, MODULE, -1, buff, 256);
+#else
+ strncpy(buff, MODULE, 256);
+#endif
+ odp.ptszTitle = TranslateTS(buff);
odp.ptszGroup = TranslateT("Network");
odp.ptszTab = TranslateT("Account");
odp.nIDBottomSimpleControl = 0;
diff --git a/MySpace/version.h b/MySpace/version.h
index a59fd8a..1e69353 100644
--- a/MySpace/version.h
+++ b/MySpace/version.h
@@ -5,7 +5,7 @@
#define __MAJOR_VERSION 0
#define __MINOR_VERSION 0
#define __RELEASE_NUM 1
-#define __BUILD_NUM 10
+#define __BUILD_NUM 11
#define __FILEVERSION_STRING __MAJOR_VERSION,__MINOR_VERSION,__RELEASE_NUM,__BUILD_NUM
#define __FILEVERSION_STRING_DOTS __MAJOR_VERSION.__MINOR_VERSION.__RELEASE_NUM.__BUILD_NUM