Author: tkreuzer
Date: Sun Dec 23 22:53:41 2012
New Revision: 57985
URL:
http://svn.reactos.org/svn/reactos?rev=57985&view=rev
Log:
[KS]
- Mark a variable that is assigned inside an SEH block as _SEH2_VOLATILE.
- Silence some MSVC warnings
Modified:
trunk/reactos/drivers/ksfilter/ks/image.c
trunk/reactos/drivers/ksfilter/ks/ks.spec
trunk/reactos/drivers/ksfilter/ks/swenum.c
Modified: trunk/reactos/drivers/ksfilter/ks/image.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/ksfilter/ks/image.…
==============================================================================
--- trunk/reactos/drivers/ksfilter/ks/image.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/ksfilter/ks/image.c [iso-8859-1] Sun Dec 23 22:53:41 2012
@@ -27,7 +27,7 @@
PIMAGE_RESOURCE_DATA_ENTRY ResourceDataEntry;
PVOID Data;
ULONG Size;
- PVOID Result = NULL;
+ PVOID _SEH2_VOLATILE Result = NULL;
/* set up resource info */
ResourceInfo.Type = ResourceType;
@@ -131,7 +131,7 @@
}
/* allocate image name buffer */
- ImageName->MaximumLength = sizeof(ImagePath) + ImageLength;
+ ImageName->MaximumLength = (USHORT)(sizeof(ImagePath) + ImageLength);
ImageName->Buffer = AllocateItem(PagedPool, ImageName->MaximumLength);
/* check for success */
@@ -145,7 +145,11 @@
RtlCopyMemory(ImageName->Buffer, ImagePath, sizeof(ImagePath));
/* retrieve image name */
- Status = KspQueryRegValue(RegKey, L"Image",
&ImageName->Buffer[sizeof(ImagePath) / sizeof(WCHAR)], &ImageLength, NULL);
+ Status = KspQueryRegValue(RegKey,
+ L"Image",
+ &ImageName->Buffer[sizeof(ImagePath) /
sizeof(WCHAR)],
+ &ImageLength,
+ NULL);
if (!NT_SUCCESS(Status))
{
Modified: trunk/reactos/drivers/ksfilter/ks/ks.spec
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/ksfilter/ks/ks.spe…
==============================================================================
--- trunk/reactos/drivers/ksfilter/ks/ks.spec [iso-8859-1] (original)
+++ trunk/reactos/drivers/ksfilter/ks/ks.spec [iso-8859-1] Sun Dec 23 22:53:41 2012
@@ -9,7 +9,7 @@
@ stdcall -i386 ?NonDelegatedQueryInterface@CBaseUnknown@@UAGJABU_GUID@@PAPAX@Z(ptr ptr
ptr) INonDelegatedUnknown_fnQueryInterface
@ stdcall ?NonDelegatedRelease@CBaseUnknown@@UAGKXZ(ptr) IIndirectedUnknown_fnRelease
-@ stdcall DllInitialize(ptr)
+@ stdcall -private DllInitialize(ptr)
@ stdcall KoCreateInstance(ptr ptr long ptr ptr)
@ stdcall KoDeviceInitialize(ptr)
@ stdcall KoDriverInitialize(ptr ptr ptr)
Modified: trunk/reactos/drivers/ksfilter/ks/swenum.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/ksfilter/ks/swenum…
==============================================================================
--- trunk/reactos/drivers/ksfilter/ks/swenum.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/ksfilter/ks/swenum.c [iso-8859-1] Sun Dec 23 22:53:41 2012
@@ -678,7 +678,7 @@
Length += wcslen(DeviceEntry->Instance);
/* zero byte and '\\' */
- Length += 2;
+ Length += 2;
/* allocate buffer */
Buffer = AllocateItem(NonPagedPool, Length * sizeof(WCHAR));
@@ -1532,7 +1532,7 @@
}
BusDeviceExtension->ServicePath.Length = 0;
- BusDeviceExtension->ServicePath.MaximumLength = Length;
+ BusDeviceExtension->ServicePath.MaximumLength = (USHORT)Length;
BusDeviceExtension->ServicePath.Buffer = AllocateItem(NonPagedPool, Length);
if (!BusDeviceExtension->ServicePath.Buffer)
@@ -2120,7 +2120,7 @@
/*
@implemented
*/
-KSDDKAPI
+KSDDKAPI
NTSTATUS
NTAPI
KsRemoveBusEnumInterface(