diff options
author | George Hazan <george.hazan@gmail.com> | 2016-01-09 19:29:53 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-01-09 19:29:53 +0000 |
commit | 3712107a333f03a415c38991cd078167e34d2c59 (patch) | |
tree | df916611a035b88d7d5c016ab4c394b005d8faff /protocols | |
parent | 7f4f11f7e3358c24147e4e534cde33dffde1e590 (diff) |
fix for unicode file names
git-svn-id: http://svn.miranda-ng.org/main/trunk@16072 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/ICQCorp/src/corp.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/protocols/ICQCorp/src/corp.cpp b/protocols/ICQCorp/src/corp.cpp index 70dbea0cb8..8d57af8048 100644 --- a/protocols/ICQCorp/src/corp.cpp +++ b/protocols/ICQCorp/src/corp.cpp @@ -62,12 +62,12 @@ extern "C" __declspec(dllexport) int Load() mir_getLP(&pluginInfo);
char fileName[MAX_PATH];
- WIN32_FIND_DATA findData;
+ GetModuleFileNameA(hInstance, fileName, MAX_PATH);
- GetModuleFileName(hInstance, fileName, MAX_PATH);
- FindClose(FindFirstFile(fileName, &findData));
- findData.cFileName[mir_strlen(findData.cFileName) - 4] = 0;
- mir_strcpy(protoName, findData.cFileName);
+ WIN32_FIND_DATAA findData;
+ FindClose(FindFirstFileA(fileName, &findData));
+ findData.cFileName[strlen(findData.cFileName) - 4] = 0;
+ strncpy_s(protoName, findData.cFileName, _TRUNCATE);
PROTOCOLDESCRIPTOR pd = { PROTOCOLDESCRIPTOR_V3_SIZE };
pd.szName = protoName;
|