summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/ModernOpt/src/mopt_selector.cpp6
-rw-r--r--plugins/Quotes/src/Forex.cpp2
-rw-r--r--src/core/stdchat/src/chat.h4
3 files changed, 6 insertions, 6 deletions
diff --git a/plugins/ModernOpt/src/mopt_selector.cpp b/plugins/ModernOpt/src/mopt_selector.cpp
index 267848781b..7a1bfa1285 100644
--- a/plugins/ModernOpt/src/mopt_selector.cpp
+++ b/plugins/ModernOpt/src/mopt_selector.cpp
@@ -96,7 +96,7 @@ struct TSkinListItem
path = (TCHAR *)mir_alloc(MAX_PATH * sizeof(TCHAR));
PathToRelativeT(curPath, path);
- int length = mir_tstrlen(curPath)+mir_tstrlen(fn)+2;
+ size_t length = mir_tstrlen(curPath)+mir_tstrlen(fn)+2;
filename = (TCHAR *)mir_alloc(length * sizeof(TCHAR));
mir_sntprintf(filename, length, _T("%s\\%s"), curPath, fn);
}
@@ -128,7 +128,7 @@ struct TSelectorData
static bool CheckExt(TCHAR *fn, TCHAR *ext, int n)
{
- int l = mir_tstrlen(fn);
+ size_t l = mir_tstrlen(fn);
return (l > n) && !mir_tstrcmp(fn + l - n, ext);
}
@@ -140,7 +140,7 @@ static void BuildSkinList(HWND hwndList, TCHAR *szExt, int nExtLength = -1, bool
if (TCHAR *p = _tcsrchr(mirPath, _T('\\'))) *p = 0;
SetCurrentDirectory(mirPath);
SendMessage(hwndList, LB_RESETCONTENT, 0, 0);
- nExtLength = mir_tstrlen(szExt);
+ nExtLength = (int)mir_tstrlen(szExt);
SendMessage(hwndList, WM_SETREDRAW, FALSE, 0);
}
diff --git a/plugins/Quotes/src/Forex.cpp b/plugins/Quotes/src/Forex.cpp
index a3a62b9405..36adb777ea 100644
--- a/plugins/Quotes/src/Forex.cpp
+++ b/plugins/Quotes/src/Forex.cpp
@@ -318,7 +318,7 @@ namespace
InitMenu();
- ::ResetEvent(g_hEventWorkThreadStop);
+ BOOL b = ::ResetEvent(g_hEventWorkThreadStop);
assert(b && "Failed to reset event");
const CModuleInfo::TQuotesProvidersPtr& pProviders = CModuleInfo::GetQuoteProvidersPtr();
diff --git a/src/core/stdchat/src/chat.h b/src/core/stdchat/src/chat.h
index d0702be5d2..a368b899e4 100644
--- a/src/core/stdchat/src/chat.h
+++ b/src/core/stdchat/src/chat.h
@@ -74,8 +74,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
struct TABLIST
{
- TCHAR* pszID;
- char* pszModule;
+ TCHAR *pszID;
+ char *pszModule;
TABLIST *next;
};