-
Notifications
You must be signed in to change notification settings - Fork 1
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
Windows - Create the Khronos\OpenXR\1\ApiLayers\Implicit if it doesn't exist #10
Conversation
Thanks, this looks good! I'd prefer I'll merge later after testing that if all seems good |
I understand your concern but sadly I'm not familiar enough with the rights of registry keys to provide you a solution/answer. I just added a new commit switching from NULL to nullptr, it compiled fine! I faced this 'bug' and it seemed it was something 'easily' fixable so I checked the code and made this small PR but I'm in no way an expert. |
Another thing (this may not be the best place to post it) When cloning your repo, I first tried compiling it before adding my changes but faced a compilation error
I suppose it is an error only occuring on my setup (no idea why) and I solved it by changing
It is probably not the correct way to do it, either way it was just to get the app to compile on my machine. |
In fact, by reading the documentation of RegCreateKeyExW a bit more carefully, it seems that the ACL should be inherited from the direct parent (which I think is the desired behavior):
|
MSVC's pickiness here varies and improves fairly rapidly; AIUI your change is correct, but should be unneeded. The likely cause is that your MSVC C++ toolset is slightly out of date - you're using 14.38, but as of May, the current version is 14.30 - there have also been several bugfixes to MSVC's C++ in more recent updates. Updating visual studio should resolve the issue. |
Huh, weird, the CI build crashes on startup, but if I build the branch myself it's fine. |
Got a CI build that crashes but a local build doesn't refs #10
Yep, but if I download the result and try to run it, it crashes. On the plus side, it leaves a dump, but unfortunately I didn't have the foresight to upload the debug symbols to CI, so the dumps aren't really useful >_< |
Oh ok, I thought you meant the compilation crashing 😅 |
Huhh... very weird. Possible difference is because I'm doing a 64-bit build locally but the remote build is 32-bit - but the 'X64' FOLDERID is supposed to work regardless of bitness. This ends up being an uncaught hresult_exception The really weird thing is what ends up in the crash report as the cause of process termination:
|
Merging, same issue exists in main, not caused by this PR. Another possible cause is that right now, my local build is with clang rather than MSVC (because it gives much better error messages for template problems) |
Thanks again, and sorry for the noise :) |
No problem, thank you for the great app ! |
Hello,
Thank you for your great tool, it helps me a lot when managing my layers!
Recently, I had to install a layer on a computer that never had one installed and this app could not create the registry key.
This little pull-request allows the app to create the registry key if it is not already there.
Maybe the original behavior of the app was the one intended (for security reasons?) and in this case fell free to discard this PR.
Don't hesitate to contact me if you want more informations, even though I think the changes are quite minimal