X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=w32log.c;h=fc8c61b8d7fe4fac6993548ca17984824e87e52d;hp=7372136fc1165a682e85fc19638b885c8e740540;hb=6eb8be9b2ddbf734039d83c31f0ce3b5987d5d29;hpb=6c163ce8cb66f1fd352c87766a36892e3e4d1703 diff --git a/w32log.c b/w32log.c index 7372136f..fc8c61b8 100644 --- a/w32log.c +++ b/w32log.c @@ -1,4 +1,3 @@ -const char w32log_rcs[] = "$Id: w32log.c,v 1.45 2012/05/24 15:05:17 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/w32log.c,v $ @@ -41,6 +40,7 @@ const char w32log_rcs[] = "$Id: w32log.c,v 1.45 2012/05/24 15:05:17 fabiankeil E #ifndef STRICT #define STRICT #endif +#include #include #include @@ -54,15 +54,6 @@ const char w32log_rcs[] = "$Id: w32log.c,v 1.45 2012/05/24 15:05:17 fabiankeil E #include "errlog.h" #include "loadcfg.h" -const char w32res_h_rcs[] = W32RES_H_VERSION; - -#ifdef __MINGW32__ -#include "cygwin.h" -const char cygwin_h_rcs[] = CYGWIN_H_VERSION; -#endif - -const char w32log_h_rcs[] = W32LOG_H_VERSION; - #ifndef _WIN_CONSOLE /* entire file */ /* @@ -172,6 +163,9 @@ static struct _Pattern { "Connect: Reusing server socket", STYLE_HIGHLIGHT }, { "Connect: Created new connection to", STYLE_HIGHLIGHT }, { "hung up on us", STYLE_HIGHLIGHT }, + { "Info: Loading actions file:", STYLE_HIGHLIGHT }, + { "Info: Loading filter file:", STYLE_HIGHLIGHT }, + { "Info: Now toggled ", STYLE_HIGHLIGHT }, { "Crunching Referer:", STYLE_HIGHLIGHT }, /* what are all the possible error strings?? */ { "Error:", STYLE_HIGHLIGHT }, @@ -724,8 +718,8 @@ HWND CreateLogWindow(HINSTANCE hInstance, int nCmdShow) /* SendMessage(g_hwndLogBox, EM_SETWORDWRAPMODE, 0, 0); */ /* Subclass the control to catch certain messages */ - g_fnLogBox = (WNDPROC) GetWindowLong(g_hwndLogBox, GWL_WNDPROC); - SetWindowLong(g_hwndLogBox, GWL_WNDPROC, (LONG) LogRichEditProc); + g_fnLogBox = (WNDPROC) GetWindowLongPtr(g_hwndLogBox, GWLP_WNDPROC); + SetWindowLongPtr(g_hwndLogBox, GWLP_WNDPROC, (LONG_PTR) LogRichEditProc); /* Minimizing looks stupid when the log window is not on the task bar, so hide instead */ if (!g_bShowOnTaskBar && @@ -949,7 +943,7 @@ void OnLogCommand(int nCommand) log_error(LOG_LEVEL_INFO, "Now toggled %s", global_toggle_state ? "ON" : "OFF"); /* - * Overload TIMER_ANIMSTOP_ID to set the idle icon through the + * Leverage TIMER_ANIMSTOP_ID to set the idle icon through the * "application queue". According to MSDN, 10 milliseconds are * the lowest value possible and seem to be close enough to * "instantly".