diff options
Diffstat (limited to 'EmulatorPkg')
-rw-r--r-- | EmulatorPkg/Win/Host/WinBlockIo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/EmulatorPkg/Win/Host/WinBlockIo.c b/EmulatorPkg/Win/Host/WinBlockIo.c index c7cfbee2e0..e90376d5fb 100644 --- a/EmulatorPkg/Win/Host/WinBlockIo.c +++ b/EmulatorPkg/Win/Host/WinBlockIo.c @@ -356,7 +356,7 @@ WinNtBlockIoWriteBlocks ( )
{
WIN_NT_BLOCK_IO_PRIVATE *Private;
- UINTN BytesWritten;
+ DWORD BytesWritten;
BOOL Success;
EFI_STATUS Status;
UINT64 DistanceToMove;
@@ -375,7 +375,7 @@ WinNtBlockIoWriteBlocks ( return WinNtBlockIoError (Private->Media);
}
- Success = WriteFile (Private->NtHandle, Buffer, (DWORD)BufferSize, (LPDWORD)&BytesWritten, NULL);
+ Success = WriteFile (Private->NtHandle, Buffer, (DWORD)BufferSize, &BytesWritten, NULL);
if (!Success || (BytesWritten != BufferSize)) {
return WinNtBlockIoError (Private->Media);
}
|