mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 05:49:49 +00:00
server: Return STATUS_BUFFER_TOO_SMALL instead of STATUS_BUFFER_OVERFLOW from get_directory_entry.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ccf706b456
commit
2d147ce985
|
@ -2637,7 +2637,7 @@ static void test_query_directory(void)
|
|||
size = 0xdeadbeef;
|
||||
memset( buffer, 0xcc, sizeof(buffer) );
|
||||
status = NtQueryDirectoryObject( dir, info, needed_size - 1, TRUE, TRUE, &context, &size );
|
||||
todo_wine ok( status == STATUS_BUFFER_TOO_SMALL, "got %#lx\n", status );
|
||||
ok( status == STATUS_BUFFER_TOO_SMALL, "got %#lx\n", status );
|
||||
todo_wine ok( size == needed_size, "expected size %lu, got %lu\n", needed_size, size );
|
||||
|
||||
status = NtQueryDirectoryObject( dir, info, sizeof(buffer), TRUE, TRUE, &context, NULL );
|
||||
|
|
|
@ -556,7 +556,7 @@ DECL_HANDLER(get_directory_entry)
|
|||
memcpy( (char *)ptr + name_len, type_name->str, type_name->len );
|
||||
}
|
||||
}
|
||||
else set_error( STATUS_BUFFER_OVERFLOW );
|
||||
else set_error( STATUS_BUFFER_TOO_SMALL );
|
||||
|
||||
release_object( obj );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue