[ros-diffs] [hpoussin] 21830: In case of error, Reg* functions set the output handle to NULL. Don't rely on it to be INVALID_HANDLE_VALUE This commit is related to bug 1455