Author: tfaber
Date: Sun Jun 29 12:43:06 2014
New Revision: 63666
URL:
http://svn.reactos.org/svn/reactos?rev=63666&view=rev
Log:
[LIBUSB]
- Fix stack corruption due to incorrect StatusChangeEndpointCallBack calling convention
Modified:
trunk/reactos/lib/drivers/libusb/hub_controller.cpp
Modified: trunk/reactos/lib/drivers/libusb/hub_controller.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/libusb/hub_con…
==============================================================================
--- trunk/reactos/lib/drivers/libusb/hub_controller.cpp [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/libusb/hub_controller.cpp [iso-8859-1] Sun Jun 29 12:43:06
2014
@@ -13,7 +13,7 @@
#define NDEBUG
#include <debug.h>
-VOID StatusChangeEndpointCallBack(
+VOID NTAPI StatusChangeEndpointCallBack(
PVOID Context);
class CHubController : public IHubController,
@@ -78,7 +78,7 @@
NTSTATUS HandleSyncResetAndClearStall(IN OUT PIRP Irp, PURB Urb);
NTSTATUS HandleAbortPipe(IN OUT PIRP Irp, PURB Urb);
- friend VOID StatusChangeEndpointCallBack(PVOID Context);
+ friend VOID NTAPI StatusChangeEndpointCallBack(PVOID Context);
// constructor / destructor
CHubController(IUnknown *OuterUnknown){}
@@ -3981,7 +3981,7 @@
return STATUS_SUCCESS;
}
-VOID StatusChangeEndpointCallBack(PVOID Context)
+VOID NTAPI StatusChangeEndpointCallBack(PVOID Context)
{
CHubController* This;
PIRP Irp;