server: The name len in the get_directory_entry request must be a data_size_t.
This commit is contained in:
parent
3343c408cb
commit
5c37788a01
|
@ -4009,7 +4009,7 @@ struct get_directory_entry_request
|
|||
struct get_directory_entry_reply
|
||||
{
|
||||
struct reply_header __header;
|
||||
size_t name_len;
|
||||
data_size_t name_len;
|
||||
/* VARARG(name,unicode_str,name_len); */
|
||||
/* VARARG(type,unicode_str); */
|
||||
};
|
||||
|
|
|
@ -2890,7 +2890,7 @@ enum message_type
|
|||
obj_handle_t handle; /* handle to the directory */
|
||||
unsigned int index; /* entry index */
|
||||
@REPLY
|
||||
size_t name_len; /* length of the entry name in bytes */
|
||||
data_size_t name_len; /* length of the entry name in bytes */
|
||||
VARARG(name,unicode_str,name_len); /* entry name */
|
||||
VARARG(type,unicode_str); /* entry type */
|
||||
@END
|
||||
|
|
|
@ -3560,7 +3560,7 @@ static void dump_get_directory_entry_request( const struct get_directory_entry_r
|
|||
|
||||
static void dump_get_directory_entry_reply( const struct get_directory_entry_reply *req )
|
||||
{
|
||||
fprintf( stderr, " name_len=%lu,", (unsigned long)req->name_len );
|
||||
fprintf( stderr, " name_len=%u,", req->name_len );
|
||||
fprintf( stderr, " name=" );
|
||||
dump_varargs_unicode_str( min(cur_size,req->name_len) );
|
||||
fputc( ',', stderr );
|
||||
|
|
Loading…
Reference in New Issue