Bug 1756352 - Stop using 8.3 names in nsParentalControlsService. r=handyman

Differential Revision: https://phabricator.services.mozilla.com/D139241
This commit is contained in:
Masatoshi Kimura 2022-02-22 21:16:29 +00:00
parent 66243c7954
commit cbff0a1fdb

View File

@ -261,10 +261,9 @@ void nsParentalControlsService::LogFileDownload(bool blocked, nsIURI* aSource,
EventDataDescCreate(&eventData[WPC_ARGS_FILEDOWNLOADEVENT_BLOCKED],
(const void*)&dwBlocked, sizeof(dwBlocked));
nsCOMPtr<nsILocalFileWin> local(do_QueryInterface(aTarget)); // May be null
if (local) {
if (aTarget) { // May be null
nsAutoString path;
local->GetCanonicalPath(path);
aTarget->GetPath(path);
EventDataDescCreate(&eventData[WPC_ARGS_FILEDOWNLOADEVENT_PATH],
(const void*)path.get(),
((ULONG)path.Length() + 1) * sizeof(WCHAR));