25 Apr
2023
25 Apr
'23
5:06 p.m.
Jacek Caban (@jacek) commented about dlls/mshtml/nsio.c:
len = MultiByteToWideChar(CP_UTF8, 0, aOriginCharset, -1, NULL, 0); charset = SysAllocStringLen(NULL, len-1); - if(!charset) + if(!charset) { + if(base_wine_uri) + nsIFileURL_Release(&base_wine_uri->nsIFileURL_iface);
You could just move querying for nsWineURI below origin charset handling instead. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/2691#note_31111