replace NO_ERROR that is defined as a macro on windows