diff options
author | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-07-02 06:18:13 +0000 |
---|---|---|
committer | sje <sje@4f64403b-2f21-0410-a795-97e2b3489a10> | 2007-07-02 06:18:13 +0000 |
commit | 282d9dad6058a6160f8c7e1f5ed4dad902f8ae38 (patch) | |
tree | 4f0b88fc702ef07890098ed20ee10aa96d678aa3 | |
parent | 63ca8bdac66f5b91d22bff6ea5b649aea8b8f1f9 (diff) |
fix module name stuff
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@241 4f64403b-2f21-0410-a795-97e2b3489a10
-rw-r--r-- | MySpace/MySpace.cpp | 2 | ||||
-rw-r--r-- | MySpace/menu.cpp | 4 | ||||
-rw-r--r-- | MySpace/options.cpp | 8 | ||||
-rw-r--r-- | MySpace/version.h | 2 |
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
|