[Bug 58476] New: Specifying RRF_RT_REG_SZ | RRF_RT_REG_EXPAND_SZ in dwFlags when calling RegGetValueW fails
http://bugs.winehq.org/show_bug.cgi?id=58476 Bug ID: 58476 Summary: Specifying RRF_RT_REG_SZ | RRF_RT_REG_EXPAND_SZ in dwFlags when calling RegGetValueW fails Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs(a)winehq.org Reporter: daniel(a)oneill.app Distribution: --- Created attachment 78927 --> http://bugs.winehq.org/attachment.cgi?id=78927 regget_test.c A call to RegGetValueW with dwFlags set to RRF_RT_REG_SZ | RRF_RT_REG_EXPAND_SZ results in ERROR_INVALID_PARAMETER (82) instead of success. The observed behaviour on Windows is a successful call, provided the dwType of the record is in dwFlags. Wine Version: wine gitlab master (25-07-08, 32c6c407c52afd571edf7e17cd89d82d624ea95c) Expected Behaviour: A successful call with populated pvData/pcbData Observed Behaviour: Call returns ERROR_INVALID_PARAMETER Notes: This affects R.E.A.L VR mod for various games. Code demonstrating issue is and a proposed patch attached. Registry key to test: "HKEY_LOCAL_MACHINE\\SOFTWARE\\Khronos\\OpenXR\\1" Demonstration code looks for a RRF_RT_REG_SZ | RRF_RT_REG_EXPAND_SZ named "ActiveRuntime" Build command for provided demonstration code: winegcc -mconsole -target x86_64-w64-mingw32 -o regget_test.exe regget_test.c -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58476 --- Comment #1 from Daniel O'Neill <daniel(a)oneill.app> --- Created attachment 78928 --> http://bugs.winehq.org/attachment.cgi?id=78928 proposed patch -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58476 Daniel O'Neill <daniel(a)oneill.app> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel(a)oneill.app -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58476 Ken Sharp <imwellcushtymelike(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version|unspecified |10.11 Keywords| |download, patch, source, | |testcase -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=58476 Daniel O'Neill <daniel(a)oneill.app> changed: What |Removed |Added ---------------------------------------------------------------------------- CC|daniel(a)oneill.app | -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla