win-pvdrivers

changeset 666:0ce79d5ace51

RC File updates.
Report version in logs.
author James Harper <james.harper@bendigoit.com.au>
date Wed Sep 23 17:03:08 2009 +1000 (2009-09-23)
parents dacb06e01653
children bcf3995665d3
files xenpci/xenpci.c xenpci/xenpci.rc xenpci/xenpci_fdo.c
line diff
     1.1 --- a/xenpci/xenpci.c	Wed Sep 23 17:02:30 2009 +1000
     1.2 +++ b/xenpci/xenpci.c	Wed Sep 23 17:03:08 2009 +1000
     1.3 @@ -589,6 +589,8 @@ DriverEntry(PDRIVER_OBJECT DriverObject,
     1.4    
     1.5    UNREFERENCED_PARAMETER(RegistryPath);
     1.6  
     1.7 +  KdPrint((__DRIVER_NAME " " VER_FILEVERSION_STR));
     1.8 +
     1.9    FUNCTION_ENTER();
    1.10  
    1.11    status = AuxKlibInitialize();
     2.1 --- a/xenpci/xenpci.rc	Wed Sep 23 17:02:30 2009 +1000
     2.2 +++ b/xenpci/xenpci.rc	Wed Sep 23 17:03:08 2009 +1000
     2.3 @@ -1,6 +1,6 @@
     2.4  #include <windows.h>
     2.5 -
     2.6  #include <ntverp.h>
     2.7 +#include "gplpv_version.h"
     2.8  
     2.9  #define VER_FILETYPE                VFT_DRV
    2.10  #define VER_FILESUBTYPE             VFT2_DRV_SYSTEM
    2.11 @@ -12,17 +12,6 @@
    2.12  #define VER_INTERNALNAME_STR        "xenpci.sys"
    2.13  #define VER_ORIGINALFILENAME_STR    "xenpci.sys"
    2.14  
    2.15 -#define EXPAND(x) STRINGIFY(x)
    2.16 -#define STRINGIFY(x) #x
    2.17 -
    2.18 -#ifdef BUILD_NUMBER
    2.19 -  #define VER_FILEVERSION             0,10,0,BUILD_NUMBER
    2.20 -  #define VER_FILEVERSION_STR         "GPLPV 0.10.0." EXPAND(BUILD_NUMBER)
    2.21 -#else
    2.22 -  #define VER_FILEVERSION             0,0,0,0
    2.23 -  #define VER_FILEVERSION_STR         "GPLPV Unversioned"
    2.24 -#endif
    2.25 -
    2.26  #undef VER_PRODUCTVERSION
    2.27  #define VER_PRODUCTVERSION          VER_FILEVERSION
    2.28  #undef VER_PRODUCTVERSION_STR
     3.1 --- a/xenpci/xenpci_fdo.c	Wed Sep 23 17:02:30 2009 +1000
     3.2 +++ b/xenpci/xenpci_fdo.c	Wed Sep 23 17:03:08 2009 +1000
     3.3 @@ -98,12 +98,15 @@ XenPci_EvtDeviceQueryRemove(WDFDEVICE de
     3.4  static NTSTATUS
     3.5  XenPci_Init(PXENPCI_DEVICE_DATA xpdd)
     3.6  {
     3.7 +  NTSTATUS status;
     3.8    struct xen_add_to_physmap xatp;
     3.9    int ret;
    3.10  
    3.11    FUNCTION_ENTER();
    3.12  
    3.13 -  hvm_get_stubs(xpdd);
    3.14 +  status = hvm_get_stubs(xpdd);
    3.15 +  if (!NT_SUCCESS(status))
    3.16 +    return status;
    3.17  
    3.18    if (!xpdd->shared_info_area)
    3.19    {