Closed Bug 1611727 Opened 5 years ago Closed 5 years ago

GetProcAddress is not needed for rstrtmgr.dll functions anymore

Categories

(Toolkit :: Startup and Profile System, defect, P5)

defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: alexhenrie24, Assigned: alexhenrie24)

Details

Attachments

(1 obsolete file)

ProfileUnlockerWin.cpp currently calls GetProcAddress to get pointers to various functions in rstrtmgr.dll (and one function in kernel32.dll). This is no longer necessary because all of these functions are guaranteed to be available from Windows Vista on, and Firefox no longer supports Windows XP.

Okay, it looks like we can't link to rstrtmgr.dll quite yet because MinGW doesn't have support for rstrtmgr.dll yet, so the build fails on the try server. While we're waiting for that to be fixed, I have opened Bug 1611745 about the use of GetProcAddress for QueryFullProcessImageNameW in ProfileUnlockerWin.cpp.

The priority flag is not set for this bug.
:mossop, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(dtownsend)
Flags: needinfo?(dtownsend)
Priority: -- → P5

MinGW supports rstrtmgr.dll now, so I think at this point it's safe to start linking to it directly.

Assignee: nobody → alexhenrie24
Status: NEW → ASSIGNED
Attachment #9193654 - Attachment is obsolete: true

Per the discussion at https://phabricator.services.mozilla.com/D99967#3264089, it seems that we're better off staying with run-time linkage here because the code is only called on a rare error path. Therefore I am closing this bug.

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: