Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexey Alyaev
wine
Commits
ef3ed04c
Commit
ef3ed04c
authored
9 years ago
by
Qian Hong
Committed by
Alexandre Julliard
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
server: Fix type name of directory file.
parent
f208c50c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/ntdll/tests/om.c
+3
-3
3 additions, 3 deletions
dlls/ntdll/tests/om.c
server/change.c
+9
-1
9 additions, 1 deletion
server/change.c
with
12 additions
and
4 deletions
dlls/ntdll/tests/om.c
+
3
−
3
View file @
ef3ed04c
...
...
@@ -783,11 +783,11 @@ static void test_query_object(void)
memset
(
buffer
,
0
,
sizeof
(
buffer
)
);
status
=
pNtQueryObject
(
handle
,
ObjectTypeInformation
,
buffer
,
sizeof
(
buffer
),
&
len
);
ok
(
status
==
STATUS_SUCCESS
,
"NtQueryObject failed %x
\n
"
,
status
);
todo_wine
ok
(
len
>
sizeof
(
OBJECT_TYPE_INFORMATION
),
"unexpected len %u
\n
"
,
len
);
ok
(
len
>
sizeof
(
OBJECT_TYPE_INFORMATION
),
"unexpected len %u
\n
"
,
len
);
str
=
(
UNICODE_STRING
*
)
buffer
;
expected_len
=
sizeof
(
OBJECT_TYPE_INFORMATION
)
+
str
->
Length
+
sizeof
(
WCHAR
);
todo_wine
ok
(
len
>=
expected_len
,
"unexpected len %u
\n
"
,
len
);
todo_wine
ok
(
str
->
Buffer
&&
!
memcmp
(
str
->
Buffer
,
type_file
,
sizeof
(
type_file
)
),
ok
(
len
>=
expected_len
,
"unexpected len %u
\n
"
,
len
);
ok
(
str
->
Buffer
&&
!
memcmp
(
str
->
Buffer
,
type_file
,
sizeof
(
type_file
)
),
"wrong/bad type name %s (%p)
\n
"
,
wine_dbgstr_w
(
str
->
Buffer
),
str
->
Buffer
);
pNtClose
(
handle
);
...
...
This diff is collapsed.
Click to expand it.
server/change.c
+
9
−
1
View file @
ef3ed04c
...
...
@@ -148,13 +148,14 @@ static struct security_descriptor *dir_get_sd( struct object *obj );
static
int
dir_set_sd
(
struct
object
*
obj
,
const
struct
security_descriptor
*
sd
,
unsigned
int
set_info
);
static
void
dir_dump
(
struct
object
*
obj
,
int
verbose
);
static
struct
object_type
*
dir_get_type
(
struct
object
*
obj
);
static
void
dir_destroy
(
struct
object
*
obj
);
static
const
struct
object_ops
dir_ops
=
{
sizeof
(
struct
dir
),
/* size */
dir_dump
,
/* dump */
no
_get_type
,
/* get_type */
dir
_get_type
,
/* get_type */
add_queue
,
/* add_queue */
remove_queue
,
/* remove_queue */
default_fd_signaled
,
/* signaled */
...
...
@@ -250,6 +251,13 @@ static void dir_dump( struct object *obj, int verbose )
fprintf
(
stderr
,
"Dirfile fd=%p filter=%08x
\n
"
,
dir
->
fd
,
dir
->
filter
);
}
static
struct
object_type
*
dir_get_type
(
struct
object
*
obj
)
{
static
const
WCHAR
name
[]
=
{
'F'
,
'i'
,
'l'
,
'e'
};
static
const
struct
unicode_str
str
=
{
name
,
sizeof
(
name
)
};
return
get_object_type
(
&
str
);
}
/* enter here directly from SIGIO signal handler */
void
do_change_notify
(
int
unix_fd
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment