Update SDUtilsGetVersion function

This commit is contained in:
Maschell 2022-09-03 21:45:21 +02:00
parent f18b7f6ed9
commit 6ae91cce9d

View File

@ -92,8 +92,12 @@ bool SDUtilsRemoveCleanUpHandlesHandler(SDCleanUpHandlesHandlerFn fn) {
return false; return false;
} }
SDUtilsVersion SDUtilsGetVersion() { SDUtilsStatus SDUtilsGetVersion(SDUtilsVersion *outVersion) {
return SDUTILS_MODULE_VERSION; if (outVersion == nullptr) {
return SDUTILS_RESULT_INVALID_ARGUMENT;
}
*outVersion = 1;
return SDUTILS_RESULT_SUCCESS;
} }
WUMS_EXPORT_FUNCTION(SDUtilsGetVersion); WUMS_EXPORT_FUNCTION(SDUtilsGetVersion);