Commit 572dd0b4 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

winevulkan: Assert Unix call result in generated thunks.

Instead of silently ignoring crashes.
parent 5b41a481
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -762,15 +762,17 @@ class VkFunction(object):
def loader_body(self):
body = " struct {0}_params params;\n".format(self.name)
body += " NTSTATUS status;\n"
for p in self.params:
body += " params.{0} = {0};\n".format(p.name)
body += " ";
# Call the Unix function.
if self.needs_direct_call():
body += "p_vk_direct_unix_call(unix_handle, unix_{0}, &params);\n".format(self.name)
body += "status = p_vk_direct_unix_call(unix_handle, unix_{0}, &params);\n".format(self.name)
else:
body += "vk_unix_call(unix_{0}, &params);\n".format(self.name)
body += "status = vk_unix_call(unix_{0}, &params);\n".format(self.name)
body += " assert(!status);\n"
if self.type != "void":
body += " return params.result;\n"
return body
......
......@@ -24,6 +24,7 @@
#define WIN32_NO_STATUS
#include <stdarg.h>
#include <stdlib.h>
#include <assert.h>
#include "windef.h"
#include "winbase.h"
#include "winternl.h"
......
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