Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
be945636
Commit
be945636
authored
Oct 01, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll/tests: Make some variables static.
parent
7c2de56c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
13 deletions
+9
-13
change.c
dlls/ntdll/tests/change.c
+4
-8
directory.c
dlls/ntdll/tests/directory.c
+1
-1
file.c
dlls/ntdll/tests/file.c
+3
-3
time.c
dlls/ntdll/tests/time.c
+1
-1
No files found.
dlls/ntdll/tests/change.c
View file @
be945636
...
...
@@ -27,13 +27,11 @@
#include <stdio.h>
#include "wine/test.h"
typedef
NTSTATUS
(
WINAPI
*
fn
NtNotifyChangeDirectoryFile
)(
static
NTSTATUS
(
WINAPI
*
p
NtNotifyChangeDirectoryFile
)(
HANDLE
,
HANDLE
,
PIO_APC_ROUTINE
,
PVOID
,
PIO_STATUS_BLOCK
,
PVOID
,
ULONG
,
ULONG
,
BOOLEAN
);
fnNtNotifyChangeDirectoryFile
pNtNotifyChangeDirectoryFile
;
typedef
NTSTATUS
(
WINAPI
*
fnNtCancelIoFile
)(
HANDLE
,
PIO_STATUS_BLOCK
);
fnNtCancelIoFile
pNtCancelIoFile
;
static
NTSTATUS
(
WINAPI
*
pNtCancelIoFile
)(
HANDLE
,
PIO_STATUS_BLOCK
);
static
void
test_ntncdf
(
void
)
...
...
@@ -321,10 +319,8 @@ START_TEST(change)
return
;
}
pNtNotifyChangeDirectoryFile
=
(
fnNtNotifyChangeDirectoryFile
)
GetProcAddress
(
hntdll
,
"NtNotifyChangeDirectoryFile"
);
pNtCancelIoFile
=
(
fnNtCancelIoFile
)
GetProcAddress
(
hntdll
,
"NtCancelIoFile"
);
pNtNotifyChangeDirectoryFile
=
(
void
*
)
GetProcAddress
(
hntdll
,
"NtNotifyChangeDirectoryFile"
);
pNtCancelIoFile
=
(
void
*
)
GetProcAddress
(
hntdll
,
"NtCancelIoFile"
);
if
(
!
pNtNotifyChangeDirectoryFile
||
!
pNtCancelIoFile
)
{
...
...
dlls/ntdll/tests/directory.c
View file @
be945636
...
...
@@ -50,7 +50,7 @@ static NTSTATUS (WINAPI *pRtlWow64EnableFsRedirection)( BOOLEAN enable );
static
NTSTATUS
(
WINAPI
*
pRtlWow64EnableFsRedirectionEx
)(
ULONG
disable
,
ULONG
*
old_value
);
/* The attribute sets to test */
struct
testfile_s
{
st
atic
st
ruct
testfile_s
{
int
todo
;
/* set if it doesn't work on wine yet */
const
DWORD
attr
;
/* desired attribute */
const
char
*
name
;
/* filename to use */
...
...
dlls/ntdll/tests/file.c
View file @
be945636
...
...
@@ -112,9 +112,9 @@ static HANDLE create_temp_file( ULONG flags )
#define CKEY_FIRST 0x1030341
#define CKEY_SECOND 0x132E46
ULONG_PTR
completionKey
;
IO_STATUS_BLOCK
ioSb
;
ULONG_PTR
completionValue
;
static
ULONG_PTR
completionKey
;
static
IO_STATUS_BLOCK
ioSb
;
static
ULONG_PTR
completionValue
;
static
ULONG
get_pending_msgs
(
HANDLE
h
)
{
...
...
dlls/ntdll/tests/time.c
View file @
be945636
...
...
@@ -39,7 +39,7 @@ static inline int IsLeapYear(int Year)
}
/* start time of the tests */
TIME_FIELDS
tftest
=
{
1889
,
12
,
31
,
23
,
59
,
59
,
0
,
0
};
static
TIME_FIELDS
tftest
=
{
1889
,
12
,
31
,
23
,
59
,
59
,
0
,
0
};
static
void
test_pRtlTimeToTimeFields
(
void
)
{
...
...
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