[RDBSS]
authorPierre Schweitzer <pierre@reactos.org>
Sun, 18 Jun 2017 21:27:56 +0000 (21:27 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sun, 18 Jun 2017 21:27:56 +0000 (21:27 +0000)
Clean up CMake files, based on suggestions by Herm├Ęs.
Might fix MSVC build.

svn path=/trunk/; revision=75106

reactos/sdk/lib/drivers/rdbsslib/CMakeLists.txt
reactos/sdk/lib/drivers/rxce/CMakeLists.txt
reactos/sdk/lib/drivers/rxce/rxce.c

index 7285c3a..8cf213c 100644 (file)
@@ -1,4 +1,4 @@
-add_definitions(-DUNICODE -D_UNICODE -D__NTOSKRNL__ -D_NTOSKRNL_ -DRDBSS_TRACKER)
+add_definitions(-DUNICODE -D_UNICODE -DRDBSS_TRACKER)
 
 include_directories(${REACTOS_SOURCE_DIR}/drivers/filesystems/mup)
 
@@ -7,4 +7,4 @@ list(APPEND SOURCE
 
 add_library(rdbsslib ${SOURCE})
 target_link_libraries(rdbsslib rxce)
-add_dependencies(rdbsslib rxce bugcodes xdk)
+add_dependencies(rdbsslib bugcodes xdk)
index f16df07..7d91077 100644 (file)
@@ -1,4 +1,4 @@
-add_definitions(-DUNICODE -D_UNICODE -D__NTOSKRNL__ -D_NTOSKRNL_ -DRDBSS_TRACKER)
+add_definitions(-DUNICODE -D_UNICODE -DRDBSS_TRACKER)
 
 include_directories(${REACTOS_SOURCE_DIR}/drivers/filesystems/mup)
 
@@ -7,4 +7,4 @@ list(APPEND SOURCE
 
 add_library(rxce ${SOURCE})
 target_link_libraries(rxce ntoskrnl memcmp)
-add_dependencies(rxce bugcodes xdk ntoskrnl)
+add_dependencies(rxce bugcodes xdk)
index f466780..42bed2b 100644 (file)
@@ -4686,7 +4686,7 @@ RxpWorkerThreadDispatcher(
 
     /* Reference ourselves */
     CurrentThread = PsGetCurrentThread();
-    Status = ObReferenceObjectByPointer(CurrentThread, THREAD_ALL_ACCESS, PsThreadType, KernelMode);
+    Status = ObReferenceObjectByPointer(CurrentThread, THREAD_ALL_ACCESS, *PsThreadType, KernelMode);
     ASSERT(NT_SUCCESS(Status));
 
     /* Infinite loop for worker */
@@ -4926,7 +4926,7 @@ RxSpinUpRequestsDispatcher(
     NTSTATUS Status;
     PRX_DISPATCHER RxDispatcher;
 
-    Status = ObReferenceObjectByPointer(PsGetCurrentThread(), THREAD_ALL_ACCESS, PsThreadType, KernelMode);
+    Status = ObReferenceObjectByPointer(PsGetCurrentThread(), THREAD_ALL_ACCESS, *PsThreadType, KernelMode);
     if (!NT_SUCCESS(Status))
     {
         PsTerminateSystemThread(STATUS_SUCCESS);