Commit 1396f04f authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

winevulkan: Never copy pNext pointer in 32-bit struct conversion functions.

parent 5135cabb
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment