mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Merge pull request #12264 from tsz8899/feat/error-handling-enhancements
[client,windows] Enhance error handling and context validation
This commit is contained in:
@@ -61,6 +61,9 @@ static void AddDefaultSettings_I(rdpSettings* settings, size_t idHostname, size_
|
||||
return;
|
||||
|
||||
int len = _snprintf(TargetName, 0, TERMSRV, ServerHostname);
|
||||
if (len < 0)
|
||||
goto fail;
|
||||
|
||||
len++;
|
||||
TargetName = (PSTR)malloc(len);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user