Author: cgutman
Date: Mon Jan 30 04:18:59 2012
New Revision: 55315
URL: http://svn.reactos.org/svn/reactos?rev=55315&view=rev
Log:
[USBSTOR]
- Handle SRB_FUNCTION_SHUTDOWN successfully (failing it results in a stack overflow due to a bug in disk.sys)
- Fixes the crash during shutdown after using a USB drive
Modified:
branches/usb-bringup-trunk/drivers/usb/usbstor/disk.c
Modified: branches/usb-bringup-trunk/drivers/usb/usbstor/disk.c
URL: http://svn.reactos.org/svn/reactos/branches/usb-bringup-trunk/drivers/usb/u…
==============================================================================
--- branches/usb-bringup-trunk/drivers/usb/usbstor/disk.c [iso-8859-1] (original)
+++ branches/usb-bringup-trunk/drivers/usb/usbstor/disk.c [iso-8859-1] Mon Jan 30 04:18:59 2012
@@ -168,10 +168,11 @@
break;
}
+ case SRB_FUNCTION_SHUTDOWN:
case SRB_FUNCTION_FLUSH:
case SRB_FUNCTION_FLUSH_QUEUE:
{
- DPRINT1("SRB_FUNCTION_FLUSH / SRB_FUNCTION_FLUSH_QUEUE\n");
+ DPRINT1("SRB_FUNCTION_FLUSH / SRB_FUNCTION_FLUSH_QUEUE / SRB_FUNCTION_SHUTDOWN\n");
//
// flush all requests
Author: ion
Date: Mon Jan 30 03:16:47 2012
New Revision: 55313
URL: http://svn.reactos.org/svn/reactos?rev=55313&view=rev
Log:
[SMSS]: Oh, right, compilation units. I had forgotten how much I hate rbuild.
Modified:
trunk/reactos/include/reactos/subsys/sm/smmsg.h
Modified: trunk/reactos/include/reactos/subsys/sm/smmsg.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/subsys/sm/…
==============================================================================
--- trunk/reactos/include/reactos/subsys/sm/smmsg.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/subsys/sm/smmsg.h [iso-8859-1] Mon Jan 30 03:16:47 2012
@@ -5,6 +5,9 @@
* PURPOSE: SMSS (SB and SM) Message Format
* PROGRAMMERS: Alex Ionescu
*/
+#pragma once
+#ifndef _SM_MSG_
+#define _SM_MSG_
//
// There are the APIs that a Client (such as CSRSS) can send to the SMSS Server.
@@ -205,4 +208,4 @@
//
C_ASSERT(sizeof(SB_CONNECTION_INFO) == 0xF4);
C_ASSERT(sizeof(SB_API_MSG) == 0x110);
-
+#endif