Skip to content

Commit

Permalink
Bug 1756352 - Stop using 8.3 names in nsParentalControlsService. r=ha…
Browse files Browse the repository at this point in the history
…ndyman

Differential Revision: https://phabricator.services.mozilla.com/D139241
  • Loading branch information
vyv03354 committed Feb 22, 2022
1 parent cbf7631 commit fef37c1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit fef37c1

Please sign in to comment.