win-pvdrivers

changeset 965:63bdd096d8d1 0.11.0.354

Fix KeInitializeCrashDumpHeader - buffer was too small under newer systems
author James Harper <james.harper@bendigoit.com.au>
date Tue Jan 10 12:11:30 2012 +1100 (2012-01-10)
parents 19d7c9dd9f5c
children 9ef8f1659811
files xenpci/xenpci.c
line diff
     1.1 --- a/xenpci/xenpci.c	Tue Jan 10 12:10:51 2012 +1100
     1.2 +++ b/xenpci/xenpci.c	Tue Jan 10 12:11:30 2012 +1100
     1.3 @@ -718,8 +718,9 @@ DriverEntry(PDRIVER_OBJECT DriverObject,
     1.4    balloon_mdl_head = XenPci_InitialBalloonDown();
     1.5  
     1.6  #if (NTDDI_VERSION >= NTDDI_WS03SP1)
     1.7 -  dump_page = ExAllocatePoolWithTag(NonPagedPool, PAGE_SIZE, XENPCI_POOL_TAG);
     1.8 -  status = KeInitializeCrashDumpHeader(DUMP_TYPE_FULL, 0, dump_page, PAGE_SIZE, &dump_header_size);
     1.9 +  status = KeInitializeCrashDumpHeader(DUMP_TYPE_FULL, 0, NULL, 0, &dump_header_size);
    1.10 +  dump_page = ExAllocatePoolWithTag(NonPagedPool, dump_header_size, XENPCI_POOL_TAG);
    1.11 +  status = KeInitializeCrashDumpHeader(DUMP_TYPE_FULL, 0, dump_page, dump_header_size, &dump_header_size);
    1.12    KdPrint((__DRIVER_NAME "     KeInitializeCrashDumpHeader status = %08x, size = %d\n", status, dump_header_size));
    1.13  #endif
    1.14