Skip to content

Commit

Permalink
ntsync5: fix crash wineserver (#1298)
Browse files Browse the repository at this point in the history
Signed-off-by: Kirill Artemev <artewar6767@gmail.com>
  • Loading branch information
Artewar67 authored Oct 26, 2024
1 parent 46ab7a7 commit 34e383d
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
16 changes: 16 additions & 0 deletions wine-tkg-git/wine-tkg-patches/misc/fastsync/ntsync5-mainline.patch
Original file line number Diff line number Diff line change
Expand Up @@ -3309,6 +3309,22 @@ diff --git a/server/object.c b/server/object.c
index 89e541f..6c6568e 100644
--- a/server/object.c
+++ b/server/object.c
@@ -120,6 +120,7 @@ static const struct object_ops apc_reserve_ops =
default_unlink_name, /* unlink_name */
no_open_file, /* open_file */
no_kernel_obj_list, /* get_kernel_obj_list */
+ no_get_fast_sync,
no_close_handle, /* close_handle */
no_destroy /* destroy */
};
@@ -144,6 +145,7 @@ static const struct object_ops completion_reserve_ops =
default_unlink_name, /* unlink_name */
no_open_file, /* open_file */
no_kernel_obj_list, /* get_kernel_obj_list */
+ no_get_fast_sync,
no_close_handle, /* close_handle */
no_destroy /* destroy */
};
@@ -538,6 +538,12 @@ struct fd *no_get_fd( struct object *obj )
return NULL;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3309,6 +3309,22 @@ diff --git a/server/object.c b/server/object.c
index 89e541f..6c6568e 100644
--- a/server/object.c
+++ b/server/object.c
@@ -120,6 +120,7 @@ static const struct object_ops apc_reserve_ops =
default_unlink_name, /* unlink_name */
no_open_file, /* open_file */
no_kernel_obj_list, /* get_kernel_obj_list */
+ no_get_fast_sync,
no_close_handle, /* close_handle */
no_destroy /* destroy */
};
@@ -144,6 +145,7 @@ static const struct object_ops completion_reserve_ops =
default_unlink_name, /* unlink_name */
no_open_file, /* open_file */
no_kernel_obj_list, /* get_kernel_obj_list */
+ no_get_fast_sync,
no_close_handle, /* close_handle */
no_destroy /* destroy */
};
@@ -538,6 +538,12 @@ struct fd *no_get_fd( struct object *obj )
return NULL;
}
Expand Down
42 changes: 42 additions & 0 deletions wine-tkg-git/wine-tkg-patches/misc/fastsync/ntsync5-staging.patch
Original file line number Diff line number Diff line change
Expand Up @@ -6723,6 +6723,48 @@ diff --git a/server/object.c b/server/object.c
index 29f1ea9..33fc18c 100644
--- a/server/object.c
+++ b/server/object.c
@@ -120,19 +120,19 @@ static const struct object_ops apc_reserve_ops =
no_add_queue, /* add_queue */
NULL, /* remove_queue */
NULL, /* signaled */
- NULL, /* get_esync_fd */
no_satisfied, /* satisfied */
no_signal, /* signal */
no_get_fd, /* get_fd */
default_map_access, /* map_access */
default_get_sd, /* get_sd */
default_set_sd, /* set_sd */
default_get_full_name, /* get_full_name */
no_lookup_name, /* lookup_name */
directory_link_name, /* link_name */
default_unlink_name, /* unlink_name */
no_open_file, /* open_file */
no_kernel_obj_list, /* get_kernel_obj_list */
+ no_get_fast_sync,
no_close_handle, /* close_handle */
no_destroy /* destroy */
};
@@ -144,19 +145,19 @@ static const struct object_ops completion_reserve_ops =
no_add_queue, /* add_queue */
NULL, /* remove_queue */
NULL, /* signaled */
- NULL, /* get_esync_fd */
no_satisfied, /* satisfied */
no_signal, /* signal */
no_get_fd, /* get_fd */
default_map_access, /* map_access */
default_get_sd, /* get_sd */
default_set_sd, /* set_sd */
default_get_full_name, /* get_full_name */
no_lookup_name, /* lookup_name */
directory_link_name, /* link_name */
default_unlink_name, /* unlink_name */
no_open_file, /* open_file */
no_kernel_obj_list, /* get_kernel_obj_list */
+ no_get_fast_sync,
no_close_handle, /* close_handle */
no_destroy /* destroy */
};
@@ -538,6 +538,12 @@ struct fd *no_get_fd( struct object *obj )
return NULL;
}
Expand Down

0 comments on commit 34e383d

Please sign in to comment.