Fix documentation of windows_guid_is_valid

This commit is contained in:
Andrea Mazzoleni 2026-07-06 22:33:39 +02:00
parent b4d370e9ed
commit 9fcbf49a2b

View file

@ -266,11 +266,9 @@ static int windows_ps(const char* ps_command, char* out, size_t out_size)
} }
/** /**
* Validates a GUID string of the form: * Validates a GUID string of the form: {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
* xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
* Does NOT accept braced forms like {xxxxxxxx-...}.
* *
* Returns true if valid, false otherwise. * Returns 0 if valid, -1 otherwise.
*/ */
int windows_guid_is_valid(const char* guid, int len) int windows_guid_is_valid(const char* guid, int len)
{ {