[Mwinapi-commits] SF.net SVN: mwinapi:[108] trunk/ManagedWinapi/Hook.cs
Status: Beta
Brought to you by:
schierlm
From: <sch...@us...> - 2011-07-13 17:25:02
|
Revision: 108 http://mwinapi.svn.sourceforge.net/mwinapi/?rev=108&view=rev Author: schierlm Date: 2011-07-13 17:24:53 +0000 (Wed, 13 Jul 2011) Log Message: ----------- fix naming of wParam/lParam in MessageHook private method (thanks to Daniel Rose for spotting it) Modified Paths: -------------- trunk/ManagedWinapi/Hook.cs Modified: trunk/ManagedWinapi/Hook.cs =================================================================== --- trunk/ManagedWinapi/Hook.cs 2011-02-14 19:54:06 UTC (rev 107) +++ trunk/ManagedWinapi/Hook.cs 2011-07-13 17:24:53 UTC (rev 108) @@ -256,11 +256,11 @@ base.Callback += MessageHookCallback; } - private int MessageHookCallback(int code, IntPtr lParam, IntPtr wParam, ref bool callNext) + private int MessageHookCallback(int code, IntPtr wParam, IntPtr lParam, ref bool callNext) { if (code == HC_ACTION) { - Message msg = (Message)Marshal.PtrToStructure(wParam, typeof(Message)); + Message msg = (Message)Marshal.PtrToStructure(lParam, typeof(Message)); if (MessageOccurred != null) { MessageOccurred(msg); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |