Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Some fixes
  • Loading branch information
yyounan committed Apr 25, 2016
1 parent 39901f9 commit f6cd08b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion AccessMBR/AccessMBR.cpp
Expand Up @@ -50,7 +50,7 @@ BOOL doWrite(HANDLE hDisk, unsigned char *buf, DWORD read, int drivenumber, char
return success;
}

int _tmain(int argc, _TCHAR* argv[])
int _tmain(int argc, char* argv[])
{
DWORD read, pos;
unsigned char buf[512];
Expand Down
5 changes: 3 additions & 2 deletions MBRFilter/MBRFilter.c
Expand Up @@ -464,12 +464,13 @@ NTSTATUS MBRFDevControl (IN PDEVICE_OBJECT DeviceObject, IN PIRP Irp) {
}
#if defined (_WIN64)
if (IoIs32bitProcess(Irp)) {
if (passthrough_ex)
if (passthrough_ex) {
cdb = (PCDB)((PSCSI_PASS_THROUGH32_EX)(Irp->AssociatedIrp.SystemBuffer))->Cdb;
cdblen = ((PSCSI_PASS_THROUGH32_EX)(Irp->AssociatedIrp.SystemBuffer))->CdbLength;
else
} else {
cdb = (PCDB)((PSCSI_PASS_THROUGH32)(Irp->AssociatedIrp.SystemBuffer))->Cdb;
cdblen = ((PSCSI_PASS_THROUGH32)(Irp->AssociatedIrp.SystemBuffer))->CdbLength;
}
}
#endif
if (cdblen < 6) {
Expand Down

0 comments on commit f6cd08b

Please sign in to comment.