mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 00:32:11 +00:00
knod of the head to sfraser, for reminding me that you need to also initialize processInfoRec with the size of the process record.
This commit is contained in:
parent
9fee508b26
commit
d9f55cbdaf
@ -1490,6 +1490,7 @@ nsresult nsRepository::AutoRegister(NSRegistrationInstant when,
|
||||
// initialize ProcessInfoRec before calling GetProcessInformation() or die horribly.
|
||||
pInfo.processName = nil;
|
||||
pInfo.processAppSpec = &tempSpec;
|
||||
pInfo.processInfoLength = sizeof(ProcessInfoRec);
|
||||
if (!(err = GetProcessInformation(&psn, &pInfo)))
|
||||
{
|
||||
appFSSpec = *(pInfo.processAppSpec);
|
||||
|
@ -1490,6 +1490,7 @@ nsresult nsRepository::AutoRegister(NSRegistrationInstant when,
|
||||
// initialize ProcessInfoRec before calling GetProcessInformation() or die horribly.
|
||||
pInfo.processName = nil;
|
||||
pInfo.processAppSpec = &tempSpec;
|
||||
pInfo.processInfoLength = sizeof(ProcessInfoRec);
|
||||
if (!(err = GetProcessInformation(&psn, &pInfo)))
|
||||
{
|
||||
appFSSpec = *(pInfo.processAppSpec);
|
||||
|
Loading…
Reference in New Issue
Block a user