mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
libobs: Convert security product name to UTF-8 for logging
Co-Authored-By: gkvjwa <285794886@qq.com>
This commit is contained in:
parent
07233d189a
commit
c57a291316
|
@ -316,9 +316,14 @@ static void log_security_products_by_type(IWSCProductList *prod_list, int type)
|
|||
continue;
|
||||
}
|
||||
|
||||
blog(LOG_INFO, "\t%S: %s (%s)", name,
|
||||
char *product_name;
|
||||
os_wcs_to_utf8_ptr(name, 0, &product_name);
|
||||
|
||||
blog(LOG_INFO, "\t%s: %s (%s)", product_name,
|
||||
get_str_for_state(prod_state), get_str_for_type(type));
|
||||
|
||||
bfree(product_name);
|
||||
|
||||
SysFreeString(name);
|
||||
prod->lpVtbl->Release(prod);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue