Formatted some code with SAL (Semantics of APIs)

This commit is contained in:
korenkonder
2025-09-19 19:19:14 +03:00
parent 533a674f70
commit d24e007c84
54 changed files with 1041 additions and 362 deletions
+6
View File
@@ -181,6 +181,9 @@ void dds::read(const wchar_t* path) {
data.shrink_to_fit();
wchar_t* path_dds = str_utils_add(path, L".dds");
if (!path_dds)
return;
file_stream s;
s.open(path_dds, L"rb");
if (s.check_not_null()) {
@@ -358,6 +361,9 @@ void dds::write(const wchar_t* path) {
}
wchar_t* path_dds = str_utils_add(path, L".dds");
if (!path_dds)
return;
file_stream s;
s.open(path_dds, L"wb");
if (s.check_not_null()) {