DWORD flags;
};
+static void freerdp_client_file_string_check_free(LPSTR str);
/*
* Set an integer in a rdpFile
*
return status;
}
-#define FILE_POPULATE_STRING(_target, _setting) \
- do \
- { \
- if (_setting) \
- { \
- _target = _strdup(_setting); \
- if (!_target) \
- return FALSE; \
- } \
+#define FILE_POPULATE_STRING(_target, _setting) \
+ do \
+ { \
+ if (_setting) \
+ { \
+ freerdp_client_file_string_check_free(_target); \
+ _target = _strdup(_setting); \
+ if (!_target) \
+ return FALSE; \
+ } \
} while (0)
BOOL freerdp_client_populate_rdp_file_from_settings(rdpFile* file, const rdpSettings* settings)