Skip to content

fix: make process.windowsStore work reliably - #23785

Merged
deepak1556 merged 1 commit into
masterfrom
fix-appx-detection
May 27, 2020
Merged

deepak1556 merged 1 commit into
masterfrom
fix-appx-detection

Conversation

@zcbenz

@zcbenz zcbenz commented May 27, 2020

Copy link
Copy Markdown
Contributor

Description of Change

Close #18161.

The length was not initialized when passed to GetPackageFamilyName, resulting in process.windowsStore being random undefined in difference versions.

Release Notes

Notes: Fix process.windowsStore returning undefined in AppX packages.

@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label May 27, 2020

@deepak1556 deepak1556 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

From docs:

Type: UINT32*

On input, the size of the packageFamilyName buffer, in characters. On output, the size of the package family name returned, in characters, including the null-terminator.

@deepak1556

Copy link
Copy Markdown
Member

Failing tests are unrelated, merging.

@deepak1556
deepak1556 merged commit ca6a415 into master May 27, 2020
@release-clerk

release-clerk Bot commented May 27, 2020

Copy link
Copy Markdown

Release Notes Persisted

Fix process.windowsStore returning undefined in AppX packages.

@trop

trop Bot commented May 27, 2020

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "10-x-y", please check out #23798

@trop trop Bot removed the target/10-x-y label May 27, 2020
@trop

trop Bot commented May 27, 2020

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "8-x-y", please check out #23799

@trop

trop Bot commented May 27, 2020

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "7-3-x", please check out #23800

@trop

trop Bot commented May 27, 2020

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "9-x-y", please check out #23801

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-pr 🌱 PR opened recently

Projects

None yet

Development

Successfully merging this pull request may close these issues.

process.windowsStore returns undefined even in AppX packages in Electron 5.0.x, 7.x, 8.x

3 participants