vrclient: Make sure the param structs are consistently aligned.

CW-Bug-Id: #22729
This commit is contained in:
Rémi Bernon 2023-10-04 21:32:49 +02:00 committed by Arkadiusz Hiler
parent 1bf0e86507
commit 8ff2cf5e8e
3 changed files with 11 additions and 0 deletions

View File

@ -1584,9 +1584,11 @@ with open(u"unixlib_generated.h", "w") as file:
out(u'#endif /* __cplusplus */\n')
out(u'\n')
out(u'#include <pshpack1.h>\n\n')
for klass, method in all_methods:
sdkver = klass._sdkver
method.write_params(out)
out(u'#include <poppack.h>\n\n')
out(u'enum unix_funcs\n')
out(u'{\n')

View File

@ -3,6 +3,7 @@
#include <stdarg.h>
#include <stddef.h>
#include <assert.h>
#include <windef.h>
#include <winbase.h>
@ -17,6 +18,8 @@ extern "C"
{
#endif /* __cplusplus */
#include <pshpack1.h>
struct render_model
{
union
@ -64,6 +67,8 @@ struct vrclient_VRClientCoreFactory_params
int *return_code;
};
#include <poppack.h>
typedef NTSTATUS (*unixlib_entry_t)( void *args );
extern const unixlib_entry_t __wine_unix_call_funcs[];

View File

@ -7,6 +7,8 @@
extern "C" {
#endif /* __cplusplus */
#include <pshpack1.h>
struct IVRApplications_IVRApplications_001_AddApplicationManifest_params
{
void *linux_side;
@ -28856,6 +28858,8 @@ struct IVRTrackedCamera_IVRTrackedCamera_006_GetCameraTrackingSpace_params
uint32_t _ret;
};
#include <poppack.h>
enum unix_funcs
{
unix_vrclient_init,