mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 04:34:48 +00:00
winevulkan: Never copy pNext pointer in 32-bit struct conversion functions.
This commit is contained in:
parent
5135cabb02
commit
1396f04f02
|
@ -2268,7 +2268,7 @@ class StructConversionFunction(object):
|
|||
for m in self.operand:
|
||||
if not self.member_needs_copy(self.operand, m):
|
||||
continue
|
||||
if m.name == "pNext" and needs_extensions:
|
||||
if m.name == "pNext" and (needs_extensions or self.conv):
|
||||
body += " out->pNext = NULL;\n"
|
||||
continue
|
||||
|
||||
|
@ -2346,6 +2346,9 @@ class StructConversionFunction(object):
|
|||
body += " break;\n"
|
||||
body += " }\n"
|
||||
body += " }\n"
|
||||
elif self.conv and self.direction == Direction.INPUT and "pNext" in self.operand:
|
||||
body += " if (in->pNext)\n"
|
||||
body += " FIXME(\"Unexpected pNext\\n\");\n"
|
||||
|
||||
body += "}\n"
|
||||
if not self.conv:
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue