mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 02:34:23 -05:00
libobs: Convert security product name to UTF-8 for logging
Co-Authored-By: gkvjwa <285794886@qq.com>
This commit is contained in:
committed by
Ryan Foster
co-authored by
gkvjwa
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user