[driver] Rename Driver_Globals_StateHandle to driver__state_handle_
authorShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Wed, 8 Dec 2010 21:12:16 +0000 (16:12 -0500)
committerShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Wed, 8 Dec 2010 21:12:16 +0000 (16:12 -0500)
src/winvblock/driver.c

index 3f388d8..b58125d 100644 (file)
@@ -44,7 +44,7 @@
 #include "debug.h"
 
 /* Globals. */
-static void * Driver_Globals_StateHandle;
+static void * driver__state_handle_;
 static winvblock__bool Driver_Globals_Started = FALSE;
 PDRIVER_OBJECT driver__obj_ptr = NULL;
 
@@ -135,9 +135,9 @@ NTSTATUS STDCALL DriverEntry(
     if (!NT_SUCCESS(status))
       return Error("registry__note_os_load_opts", status);
 
-    Driver_Globals_StateHandle = NULL;
+    driver__state_handle_ = NULL;
 
-    if ((Driver_Globals_StateHandle = PoRegisterSystemState(
+    if ((driver__state_handle_ = PoRegisterSystemState(
         NULL,
         ES_CONTINUOUS
       )) == NULL) {
@@ -298,8 +298,8 @@ winvblock__lib_func NTSTATUS STDCALL driver__default_dispatch(
   }
 
 static void STDCALL driver__unload_(IN PDRIVER_OBJECT DriverObject) {
-    if (Driver_Globals_StateHandle != NULL)
-      PoUnregisterSystemState(Driver_Globals_StateHandle);
+    if (driver__state_handle_ != NULL)
+      PoUnregisterSystemState(driver__state_handle_);
     bus__module_shutdown();
     wv_free(os_load_opts);
     Driver_Globals_Started = FALSE;