[ros-diffs] [gvg] 12764: Reverse last change, as it causes problems for ReadConsole (line input)

gvg at svn.reactos.com gvg at svn.reactos.com
Mon Jan 3 23:00:41 CET 2005


Reverse last change, as it causes problems for ReadConsole (line input)
Modified: trunk/reactos/subsys/win32k/ntuser/keyboard.c
  _____  

Modified: trunk/reactos/subsys/win32k/ntuser/keyboard.c
--- trunk/reactos/subsys/win32k/ntuser/keyboard.c	2005-01-03
21:19:25 UTC (rev 12763)
+++ trunk/reactos/subsys/win32k/ntuser/keyboard.c	2005-01-03
22:00:39 UTC (rev 12764)
@@ -16,7 +16,7 @@

  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  */
-/* $Id: keyboard.c,v 1.35 2004/12/28 08:50:10 gvg Exp $
+/* $Id$
  *
  * COPYRIGHT:        See COPYING in the top level directory
  * PROJECT:          ReactOS kernel
@@ -342,23 +342,16 @@
 			 HKL dwhkl ) {
   int ToUnicodeResult = 0;
 
-  if (0 == (lpKeyState[wVirtKey] & KS_DOWN_BIT))
-    {
-      ToUnicodeResult = 0;
-    }
-  else
-    {
-      IntLockQueueState;
-      ToUnicodeResult = ToUnicodeInner( wVirtKey,
-				        wScanCode,
-				        lpKeyState,
-				        pwszBuff,
-				        cchBuff,
-				        wFlags,
-				        PsGetWin32Thread() ? 
-
PsGetWin32Thread()->KeyboardLayout : 0 );
-      IntUnLockQueueState;
-    }
+  IntLockQueueState;
+  ToUnicodeResult = ToUnicodeInner( wVirtKey,
+				    wScanCode,
+				    lpKeyState,
+				    pwszBuff,
+				    cchBuff,
+				    wFlags,
+				    PsGetWin32Thread() ? 
+				    PsGetWin32Thread()->KeyboardLayout :
0 );
+  IntUnLockQueueState;
 
   return ToUnicodeResult;
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050103/c48c16b6/attachment.html


More information about the Ros-diffs mailing list