Call SetLastError(0) before calling the file mapping functions
to make sure that the error code is reset, as a precaution in case the API doesn't properly reset it on success. This could be necessary, since we check the error value even if the function doesn't fail for specific success cases.
Showing
Please register or sign in to comment