Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
45396585
Commit
45396585
authored
Feb 09, 2006
by
Jeremy White
Committed by
Alexandre Julliard
Feb 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: Fixed build with gcc 2.95.
parent
20284673
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
change.c
dlls/kernel/change.c
+4
-2
change.c
dlls/kernel/tests/change.c
+4
-4
No files found.
dlls/kernel/change.c
View file @
45396585
...
...
@@ -26,6 +26,8 @@
#include "ntstatus.h"
#define WIN32_NO_STATUS
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
...
...
@@ -167,7 +169,7 @@ BOOL WINAPI ReadDirectoryChangesW( HANDLE handle, LPVOID buffer, DWORD len, BOOL
pov
=
overlapped
;
ios
=
(
PIO_STATUS_BLOCK
)
pov
;
ios
->
Status
=
STATUS_PENDING
;
ios
->
u
.
Status
=
STATUS_PENDING
;
status
=
NtNotifyChangeDirectoryFile
(
handle
,
pov
->
hEvent
,
NULL
,
NULL
,
ios
,
buffer
,
len
,
filter
,
subtree
);
...
...
@@ -180,7 +182,7 @@ BOOL WINAPI ReadDirectoryChangesW( HANDLE handle, LPVOID buffer, DWORD len, BOOL
CloseHandle
(
ov
.
hEvent
);
if
(
returned
)
*
returned
=
ios
->
Information
;
status
=
ios
->
Status
;
status
=
ios
->
u
.
Status
;
}
if
(
status
!=
STATUS_SUCCESS
)
...
...
dlls/kernel/tests/change.c
View file @
45396585
...
...
@@ -431,8 +431,8 @@ static void test_readdirectorychanges(void)
SetEvent
(
ov
.
hEvent
);
ov
.
Internal
=
1
;
ov
.
InternalHigh
=
1
;
ov
.
Offset
=
0
;
ov
.
OffsetHigh
=
0
;
S
(
U
(
ov
))
.
Offset
=
0
;
S
(
U
(
ov
))
.
OffsetHigh
=
0
;
memset
(
buffer
,
0
,
sizeof
buffer
);
r
=
pReadDirectoryChangesW
(
hdir
,
buffer
,
sizeof
buffer
,
FALSE
,
filter
,
NULL
,
&
ov
,
NULL
);
ok
(
r
==
TRUE
,
"should return true
\n
"
);
...
...
@@ -532,8 +532,8 @@ static void test_readdirectorychanges_null(void)
ov
.
Internal
=
0
;
ov
.
InternalHigh
=
0
;
ov
.
Offset
=
0
;
ov
.
OffsetHigh
=
0
;
S
(
U
(
ov
))
.
Offset
=
0
;
S
(
U
(
ov
))
.
OffsetHigh
=
0
;
memset
(
buffer
,
0
,
sizeof
buffer
);
r
=
pReadDirectoryChangesW
(
hdir
,
buffer
,
sizeof
buffer
,
FALSE
,
filter
,
NULL
,
&
ov
,
NULL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment