Do not overwrite *max_bcount.

svn path=/trunk/; revision=41078
This commit is contained in:
Dmitry Gorbachev 2009-05-23 15:02:35 +00:00
parent ee55e122dd
commit 9c8b1c07fc

View file

@ -5433,6 +5433,8 @@ UniAtaCalculateLBARegs(
USHORT cylinder;
ULONG tmp;
(*max_bcount) = 0;
if(LunExt->DeviceFlags & DFLAGS_LBA_ENABLED) {
if(LunExt->LimitedTransferMode >= ATA_DMA) {
if(LunExt->DeviceExtension) {
@ -5457,7 +5459,6 @@ UniAtaCalculateLBARegs(
KdPrint2((PRINT_PREFIX "UniAtaCalculateLBARegs: C:H:S=%#x:%#x:%#x, max_bc %#x\n",
cylinder, drvSelect, sectorNumber, (*max_bcount)));
}
(*max_bcount) = 0;
return (ULONG)(sectorNumber&0xff) | (((ULONG)cylinder&0xffff)<<8) | (((ULONG)drvSelect&0xf)<<24);
} // end UniAtaCalculateLBARegs()
@ -8355,7 +8356,7 @@ DriverEntry(
LARGE_INTEGER t0, t1;
Connect_DbgPrint();
KdPrint2((PRINT_PREFIX (PCCHAR)ver_string));
KdPrint2((PRINT_PREFIX "%s", (PCCHAR)ver_string));
a = (WCHAR)strlen(ver_string);
g_opt_Verbose = (BOOLEAN)AtapiRegCheckDevValue(NULL, CHAN_NOT_SPECIFIED, DEVNUM_NOT_SPECIFIED, L"PrintLogo", 0);