Skip to content

Commit 4bf1651

Browse files
Windows - Create the Khronos\OpenXR\1\ApiLayers\Implicit if it doesn't exist (#10)
* create the Khronos\OpenXR\1\ApiLayers\Implicit if it doesn't exist * switching from NULL to nullptr --------- Co-authored-by: Fred Emmott <git@fredemmott.com>
1 parent 5909014 commit 4bf1651

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/windows/WindowsAPILayerStore.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,17 @@ WindowsAPILayerStore::WindowsAPILayerStore(
3939
break;
4040
}
4141
if (
42-
RegOpenKeyExW(rootKey, SubKey, 0, samFlags, mKey.put()) != ERROR_SUCCESS) {
42+
RegCreateKeyExW(
43+
rootKey,
44+
SubKey,
45+
0,
46+
nullptr,
47+
REG_OPTION_NON_VOLATILE,
48+
samFlags,
49+
nullptr,
50+
mKey.put(),
51+
nullptr)
52+
!= ERROR_SUCCESS) {
4353
#ifndef NDEBUG
4454
__debugbreak();
4555
#endif

0 commit comments

Comments
 (0)