Ignore:
Timestamp:
Oct 26, 2001, 7:47:21 PM (24 years ago)
Author:
sandervl
Message:

corrected last error for IOCTL_STORAGE_CHECK_VERIFY

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/hmdisk.cpp

    r7220 r7222  
    1 /* $Id: hmdisk.cpp,v 1.20 2001-10-26 14:48:37 sandervl Exp $ */
     1/* $Id: hmdisk.cpp,v 1.21 2001-10-26 17:47:21 sandervl Exp $ */
    22
    33/*
     
    854854        //TODO: check if disk has been inserted or removed
    855855        if(pHMHandleData->hHMHandle == 0) {
    856             SetLastError(NO_ERROR); //TODO: correct???
    857 //            SetLastError(ERROR_NOT_READY);         
     856            SetLastError(ERROR_NOT_READY);  //NT4, SP6 returns this
    858857            return FALSE;
    859858        }
     
    876875            //if door open or no disk present, return FALSE
    877876            if(status & (BIT_0|BIT_11)) {
    878                  rc = FALSE;
     877                SetLastError(ERROR_NOT_READY);  //NT4, SP6 returns this
     878                return FALSE;
    879879            }
    880             else rc = TRUE;
    881880            SetLastError(NO_ERROR);
    882             return rc;
     881            return TRUE;
    883882        }
    884883        else {
Note: See TracChangeset for help on using the changeset viewer.