[PATCH v2 1/2] winegstreamer: Use ULONGLONG instead of uint64_t in Unix library interface structures.

Zebediah Figura z.figura12 at gmail.com
Fri Feb 19 20:34:58 CST 2021


The latter has inconsistent alignment between the Unix and Win32 sides.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
 dlls/winegstreamer/gst_private.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/winegstreamer/gst_private.h b/dlls/winegstreamer/gst_private.h
index 03d19af1031..b8629fc8aa1 100644
--- a/dlls/winegstreamer/gst_private.h
+++ b/dlls/winegstreamer/gst_private.h
@@ -150,17 +150,18 @@ struct wg_parser_event
         struct
         {
             /* pts and duration are in 100-nanosecond units. */
-            uint64_t pts, duration;
+            ULONGLONG pts, duration;
             uint32_t size;
             bool discontinuity, preroll, delta, has_pts, has_duration;
         } buffer;
         struct
         {
-            uint64_t position, stop;
+            ULONGLONG position, stop;
             double rate;
         } segment;
     } u;
 };
+C_ASSERT(sizeof(struct wg_parser_event) == 40);
 
 struct unix_funcs
 {
-- 
2.30.1




More information about the wine-devel mailing list