if you need a log message here, I'd suggest putting it in the else block and/or altering the existing log message if you need to see the maxrate before it's (potentially) altered by IoControl().