mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 22:47:28 +00:00
[KS]
- Mark a variable that is assigned inside an SEH block as _SEH2_VOLATILE. - Silence some MSVC warnings svn path=/trunk/; revision=57985
This commit is contained in:
parent
5b41ac7487
commit
c963ccf7c2
|
@ -27,7 +27,7 @@ KsLoadResource(
|
|||
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 @@ KsGetImageNameAndResourceId(
|
|||
}
|
||||
|
||||
/* 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 @@ KsGetImageNameAndResourceId(
|
|||
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))
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -678,7 +678,7 @@ KspDoReparseForIrp(
|
|||
Length += wcslen(DeviceEntry->Instance);
|
||||
|
||||
/* zero byte and '\\' */
|
||||
Length += 2;
|
||||
Length += 2;
|
||||
|
||||
/* allocate buffer */
|
||||
Buffer = AllocateItem(NonPagedPool, Length * sizeof(WCHAR));
|
||||
|
@ -1532,7 +1532,7 @@ KsCreateBusEnumObject(
|
|||
}
|
||||
|
||||
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 @@ KsServiceBusEnumPnpRequest(
|
|||
/*
|
||||
@implemented
|
||||
*/
|
||||
KSDDKAPI
|
||||
KSDDKAPI
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
KsRemoveBusEnumInterface(
|
||||
|
|
Loading…
Reference in a new issue