about summary refs log tree commit diff stats
path: root/wrapperhelper/src/parse.c
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-12-16 10:51:41 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-12-16 10:51:41 +0100
commit77b16ae30d932b2dcd2e0c06f837ec544f7c1817 (patch)
tree6ae21e0de898e84c22545f9854707f799e02e465 /wrapperhelper/src/parse.c
parentf4a4bdd006960c64c53d837056c3a6a6f440a3d7 (diff)
downloadbox64-77b16ae30d932b2dcd2e0c06f837ec544f7c1817.tar.gz
box64-77b16ae30d932b2dcd2e0c06f837ec544f7c1817.zip
[BOX32][WRAPPER] Prepare xcb_connection_t* as n on box32
Diffstat (limited to 'wrapperhelper/src/parse.c')
-rw-r--r--wrapperhelper/src/parse.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/wrapperhelper/src/parse.c b/wrapperhelper/src/parse.c
index 83da8832..eba462bf 100644
--- a/wrapperhelper/src/parse.c
+++ b/wrapperhelper/src/parse.c
@@ -3357,7 +3357,11 @@ static int finalize_file(machine_t *target, file_t *file) {
 	// #pragma type_letters S FILE*
 	SET_WEAK_PTR_TO(FILE, S)
 	// #pragma type_letters b xcb_connection_t*
-	SET_WEAK_PTR_TO(xcb_connection_t, S)
+	if (target->size_long == 4) {
+		SET_WEAK_PTR_TO(xcb_connection_t, n)
+	} else {
+                SET_WEAK_PTR_TO(xcb_connection_t, b)
+	}
 	if (target->size_long == 4) {
 		// Only on x86, not on x86_64
 		it = kh_get(type_map, file->type_map, "locale_t");