Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch DpiAwarenessExtPlugin and NvGpuPlugin for support Process Hacker Git c2d9325 #76

Closed
VictorVG opened this issue Oct 28, 2020 · 1 comment

Comments

@VictorVG
Copy link

This simple patch fix error C2220 then build DpiAwarenessExtPlugin and NvGpuPlugin:

index 4a301ba..fbcf9f6 100644
--- a/DpiAwarenessExtPlugin/dae_main.c
+++ b/DpiAwarenessExtPlugin/dae_main.c
@@ -399,7 +399,7 @@ static void DaepInitGfDPIAwareOffset32WoW(_Out_ PULONG_PTR GfDPIAwareOffset32)

     PhGetSystemRoot(&systemRoot);
     user32FileName = PhConcatStringRefZ(&systemRoot, L"\\SysWow64\\user32.dll");
-    status = PhLoadMappedImage(user32FileName->Buffer, NULL, TRUE, &mappedImage);
+    status = PhLoadMappedImage(user32FileName->Buffer, NULL, &mappedImage);
     PhDereferenceObject(user32FileName);
     if (!NT_SUCCESS(status))
         return;

index 4a301ba..f42b4b6 100644
--- a/NvGpuPlugin/nvidia.c
+++ b/NvGpuPlugin/nvidia.c

@@ -843,7 +843,7 @@ BOOLEAN NvGpuDriverIsWHQL(VOID)
                 PPH_STRING fileSignerName = NULL;
                 //PH_MAPPED_IMAGE fileMappedImage;
                 //
-                //if (NT_SUCCESS(PhLoadMappedImage(driverDosPathString->Buffer, NULL, TRUE, &fileMappedImage)))
+                //if (NT_SUCCESS(PhLoadMappedImage(driverDosPathString->Buffer, NULL, &fileMappedImage)))
                 //{
                 //    LARGE_INTEGER time;
                 //    SYSTEMTIME systemTime;
@VictorVG VictorVG changed the title Patch for Plugins-Extra Git 4a301ba for support Process Hacker Git c2d9325 Patch DpiAwarenessExtPlugin and NvGpuPlugin for support Process Hacker Git c2d9325 Nov 1, 2020
@VictorVG
Copy link
Author

VictorVG commented Nov 6, 2020

Fixed

@VictorVG VictorVG closed this as completed Nov 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant