diff options
author | watcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-11-27 22:52:32 +0000 |
---|---|---|
committer | watcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb> | 2011-11-27 22:52:32 +0000 |
commit | 46879a24aa0e45ec0ea1ddf27f28ce68edd5e561 (patch) | |
tree | bd52507c2ef8398cfd12c74f9d573a468e5ee86c /Console/Console.c | |
parent | cf83705a2e83691e6271fdffac93e0632fd301da (diff) |
another part of small project fixes
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@224 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'Console/Console.c')
-rw-r--r-- | Console/Console.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Console/Console.c b/Console/Console.c index 7a05aed..96e56fa 100644 --- a/Console/Console.c +++ b/Console/Console.c @@ -116,7 +116,7 @@ static HANDLE hMenu = NULL; static void LoadSettings();
static void ShowConsole(int show);
-static int ShowHideConsole(WPARAM wParam, LPARAM lParam);
+static INT_PTR ShowHideConsole(WPARAM wParam, LPARAM lParam);
static int Openfile(TCHAR *outputFile, int selection);
////////////////////////////////////////////////////////////////////////////////
@@ -126,13 +126,13 @@ static HBITMAP BmpUp = NULL; static HBITMAP BmpDn = NULL;
static HANDLE hTTBButt = 0;
-static int HideConsoleButt(WPARAM wParam,LPARAM lParam)
+static INT_PTR HideConsoleButt(WPARAM wParam,LPARAM lParam)
{
ShowConsole(0);
return 0;
}
-static int ShowConsoleButt(WPARAM wParam,LPARAM lParam)
+static INT_PTR ShowConsoleButt(WPARAM wParam,LPARAM lParam)
{
ShowConsole(1);
return 0;
@@ -231,7 +231,7 @@ static void ShowConsole(int show) ////////////////////////////////////////////////////////////////////////////////
-static int ShowHideConsole(WPARAM wParam, LPARAM lParam)
+static INT_PTR ShowHideConsole(WPARAM wParam, LPARAM lParam)
{
if (hwndConsole)
ShowConsole(!IsWindowVisible(hwndConsole));
@@ -376,7 +376,7 @@ static LRESULT CALLBACK SubclassProc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM lPa ////////////////////////////////////////////////////////////////////////////////
-static BOOL CALLBACK LogDlgProc(HWND hwndDlg,UINT message,WPARAM wParam,LPARAM lParam)
+static INT_PTR CALLBACK LogDlgProc(HWND hwndDlg,UINT message,WPARAM wParam,LPARAM lParam)
{
LOGWIN *dat = (LOGWIN*)GetWindowLong(hwndDlg, GWLP_USERDATA);
@@ -489,7 +489,7 @@ static BOOL CALLBACK LogDlgProc(HWND hwndDlg,UINT message,WPARAM wParam,LPARAM l while (str != NULL)
{
lvi.pszText = &str[0];
- tmplen = len = _tcslen(lvi.pszText);
+ tmplen = len = (DWORD)_tcslen(lvi.pszText);
while(len > wraplen)
{
@@ -711,7 +711,7 @@ int ConsoleResize(HWND hwnd,LPARAM lParam,UTILRESIZECONTROL *urc) }
-static BOOL CALLBACK ConsoleDlgProc(HWND hwndDlg,UINT message,WPARAM wParam,LPARAM lParam)
+static INT_PTR CALLBACK ConsoleDlgProc(HWND hwndDlg,UINT message,WPARAM wParam,LPARAM lParam)
{
switch(message) {
case WM_INITDIALOG:
@@ -1065,8 +1065,8 @@ static int OnFastDump(WPARAM wParam,LPARAM lParam) if ( pActive )
{
LOGMSG *logMsg = (LOGMSG*)lParam;
- DWORD headlen = strlen(logMsg->pszHead);
- DWORD msglen = strlen(logMsg->pszMsg);
+ DWORD headlen = (DWORD)strlen(logMsg->pszHead);
+ DWORD msglen = (DWORD)strlen(logMsg->pszMsg);
DWORD len = (headlen + msglen + 1) * sizeof(TCHAR) + sizeof(DUMPMSG);
DUMPMSG *dumpMsg = (DUMPMSG*)malloc( len );
TCHAR *str = dumpMsg->szMsg;
@@ -1151,7 +1151,7 @@ static void SaveSettings(HWND hwndDlg) }
-static BOOL CALLBACK OptDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
+static INT_PTR CALLBACK OptDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch(msg) {
case WM_INITDIALOG:
|