Initialize the return error code to 0 for common dialog file