Skip to content

Removed RegDeleteTreeA usage in storage_winuser #5182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

gaurav2699
Copy link
Contributor

@gaurav2699 gaurav2699 commented Jun 24, 2025

Description

Gamecore builds are failing because it is not able to find the definition of RegDeleteTreeA in the undock pipelines.

Testing

Do any existing tests cover this change? Are new tests needed?

Documentation

Is there any documentation impact for this change?

@gaurav2699 gaurav2699 requested a review from a team as a code owner June 24, 2025 12:03
@gaurav2699 gaurav2699 requested a review from anrossi June 24, 2025 12:03
Copy link

codecov bot commented Jun 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.16%. Comparing base (fbcbaa2) to head (5f3013d).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5182      +/-   ##
==========================================
- Coverage   86.68%   86.16%   -0.53%     
==========================================
  Files          59       59              
  Lines       18233    18233              
==========================================
- Hits        15806    15711      -95     
- Misses       2427     2522      +95     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nibanks
Copy link
Collaborator

nibanks commented Jun 24, 2025

It seems like there is a missing include instead.

mtfriesen
mtfriesen previously approved these changes Jun 24, 2025
@mtfriesen
Copy link
Contributor

It seems like there is a missing include instead.

I was wondering how this could be broken, but the documentation for RegDeleteTreeA says to include windows.h which we surely haven't missed?

@anrossi
Copy link
Contributor

anrossi commented Jun 24, 2025

@nibanks I think gamecore specifically doesn't define the registry API, so we must define it here ourselves to build.

@nibanks
Copy link
Collaborator

nibanks commented Jun 24, 2025

I missed that this was gamecore specific. Generally, we just have to remove usage for things not on gamecore.

@mtfriesen mtfriesen dismissed their stale review June 24, 2025 17:52

API is actually not in Gamecore

@mtfriesen
Copy link
Contributor

I missed that this was gamecore specific. Generally, we just have to remove usage for things not on gamecore.

Yeah, now that I read the documentation for these partitions more carefully, if we declare functions ourselves, it's possible for Gamecore to successfully compile and maybe even link to APIs that will not be present on every Gamecore system, leading to runtime failures down the line.

@guhetier
Copy link
Contributor

guhetier commented Jun 24, 2025

Oh, that would be bad and annoying.

Also, I just remembered that #5112 actually remove the use of RegDeleteTreeA and replace it with an iteration over the relevant keys. This PR might not be needed if we merge #5112.

@gaurav2699 gaurav2699 changed the title added RegDeleteTreeA definition in restricted build Removed RegDeleteTreeA usage in storage_winuser Jun 26, 2025
@gaurav2699
Copy link
Contributor Author

Added the storage_winuser part from #5112 as discussed with Anthony to unblock gamecore builds as the PR still requires changes before it gets merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants