[Wine-devel] ntoskrnl.exe: Fix METHOD_BUFFERED check.
Alexander Morozov
=?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Пт Окт 31 12:12:37 MSK 2008
----------- следующая часть -----------
From e6c71e58fbc9b1cec3291617139f09bd4ed531e5 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Fri, 31 Oct 2008 12:09:35 +0300
Subject: [PATCH] ntoskrnl.exe: Fix METHOD_BUFFERED check.
---
dlls/ntoskrnl.exe/ntoskrnl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index 52139bd..701dbf1 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -152,7 +152,7 @@ static NTSTATUS process_ioctl( DEVICE_OBJECT *device, ULONG code, void *in_buff,
--irp->CurrentLocation;
irpsp = --irp->Tail.Overlay.s.u.CurrentStackLocation;
- if (METHOD_BUFFERED == code & 3)
+ if (METHOD_BUFFERED == (code & 3))
{
buf = ExAllocatePool( NonPagedPool, (*out_size > in_size) ? *out_size : in_size );
if (buf == NULL)
--
1.5.6.5.GIT
Подробная информация о списке рассылки Wine-devel