Commit 5c37788a authored by Alexandre Julliard's avatar Alexandre Julliard

server: The name len in the get_directory_entry request must be a data_size_t.

parent 3343c408
...@@ -4009,7 +4009,7 @@ struct get_directory_entry_request ...@@ -4009,7 +4009,7 @@ struct get_directory_entry_request
struct get_directory_entry_reply struct get_directory_entry_reply
{ {
struct reply_header __header; struct reply_header __header;
size_t name_len; data_size_t name_len;
/* VARARG(name,unicode_str,name_len); */ /* VARARG(name,unicode_str,name_len); */
/* VARARG(type,unicode_str); */ /* VARARG(type,unicode_str); */
}; };
......
...@@ -2890,7 +2890,7 @@ enum message_type ...@@ -2890,7 +2890,7 @@ enum message_type
obj_handle_t handle; /* handle to the directory */ obj_handle_t handle; /* handle to the directory */
unsigned int index; /* entry index */ unsigned int index; /* entry index */
@REPLY @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(name,unicode_str,name_len); /* entry name */
VARARG(type,unicode_str); /* entry type */ VARARG(type,unicode_str); /* entry type */
@END @END
......
...@@ -3560,7 +3560,7 @@ static void dump_get_directory_entry_request( const struct get_directory_entry_r ...@@ -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 ) 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=" ); fprintf( stderr, " name=" );
dump_varargs_unicode_str( min(cur_size,req->name_len) ); dump_varargs_unicode_str( min(cur_size,req->name_len) );
fputc( ',', stderr ); fputc( ',', stderr );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment