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

This commit is contained in:
Jacek Caban 2022-11-12 17:26:09 +01:00 committed by Alexandre Julliard
parent 5135cabb02
commit 1396f04f02
2 changed files with 427 additions and 142 deletions

View file

@ -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