HOSTDEV-1248 fix CreateFile error check
STORAGEMODEL-257 is the correct message of last commit