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

Fix msrmain.c Complie error when using mymake.bat #1

Merged
merged 1 commit into from
Jan 9, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion WinMSRDriver/Win7/msrmain.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ NTSTATUS deviceControl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
ULONG inputSize = 0;
PCI_SLOT_NUMBER slot;
unsigned size = 0;
PROCESSOR_NUMBER ProcNumber;

PAGED_CODE();

Expand All @@ -157,7 +158,7 @@ NTSTATUS deviceControl(PDEVICE_OBJECT DeviceObject, PIRP Irp)
input_msr_req = (struct MSR_Request *)Irp->AssociatedIrp.SystemBuffer;
input_pcicfg_req = (struct PCICFG_Request *)Irp->AssociatedIrp.SystemBuffer;
output = (ULONG64 *)Irp->AssociatedIrp.SystemBuffer;
PROCESSOR_NUMBER ProcNumber;

memset(&ProcNumber, 0, sizeof(PROCESSOR_NUMBER));

switch (IrpStackLocation->Parameters.DeviceIoControl.IoControlCode)
Expand Down