[Drivers,Platform] Replace ERR_FAIL_COND with ERR_FAIL_NULL where applicable
This commit is contained in:
@ -395,7 +395,7 @@ Error OS_Windows::open_dynamic_library(const String p_path, void *&p_library_han
|
||||
}
|
||||
}
|
||||
#else
|
||||
ERR_FAIL_COND_V_MSG(!p_library_handle, ERR_CANT_OPEN, vformat("Can't open dynamic library: %s. Error: %s.", p_path, format_error_message(GetLastError())));
|
||||
ERR_FAIL_NULL_V_MSG(p_library_handle, ERR_CANT_OPEN, vformat("Can't open dynamic library: %s. Error: %s.", p_path, format_error_message(GetLastError())));
|
||||
#endif
|
||||
|
||||
if (cookie) {
|
||||
@ -1678,7 +1678,7 @@ Error OS_Windows::move_to_trash(const String &p_path) {
|
||||
|
||||
String OS_Windows::get_system_ca_certificates() {
|
||||
HCERTSTORE cert_store = CertOpenSystemStoreA(0, "ROOT");
|
||||
ERR_FAIL_COND_V_MSG(!cert_store, "", "Failed to read the root certificate store.");
|
||||
ERR_FAIL_NULL_V_MSG(cert_store, "", "Failed to read the root certificate store.");
|
||||
|
||||
FILETIME curr_time;
|
||||
GetSystemTimeAsFileTime(&curr_time);
|
||||
|
||||
Reference in New Issue
Block a user