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
e32218fd
Commit
e32218fd
authored
Nov 16, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Nov 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32/tests: Fix a test failure with Wow64.
parent
f852d98e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
eventlog.c
dlls/advapi32/tests/eventlog.c
+14
-0
No files found.
dlls/advapi32/tests/eventlog.c
View file @
e32218fd
...
...
@@ -31,13 +31,19 @@
static
BOOL
(
WINAPI
*
pCreateWellKnownSid
)(
WELL_KNOWN_SID_TYPE
,
PSID
,
PSID
,
DWORD
*
);
static
BOOL
(
WINAPI
*
pGetEventLogInformation
)(
HANDLE
,
DWORD
,
LPVOID
,
DWORD
,
LPDWORD
);
static
BOOL
(
WINAPI
*
pWow64DisableWow64FsRedirection
)(
PVOID
*
);
static
BOOL
(
WINAPI
*
pWow64RevertWow64FsRedirection
)(
PVOID
);
static
void
init_function_pointers
(
void
)
{
HMODULE
hadvapi32
=
GetModuleHandleA
(
"advapi32.dll"
);
HMODULE
hkernel32
=
GetModuleHandleA
(
"kernel32.dll"
);
pCreateWellKnownSid
=
(
void
*
)
GetProcAddress
(
hadvapi32
,
"CreateWellKnownSid"
);
pGetEventLogInformation
=
(
void
*
)
GetProcAddress
(
hadvapi32
,
"GetEventLogInformation"
);
pWow64DisableWow64FsRedirection
=
(
void
*
)
GetProcAddress
(
hkernel32
,
"Wow64DisableWow64FsRedirection"
);
pWow64RevertWow64FsRedirection
=
(
void
*
)
GetProcAddress
(
hkernel32
,
"Wow64RevertWow64FsRedirection"
);
}
static
void
create_backup
(
const
char
*
filename
)
...
...
@@ -945,6 +951,7 @@ static void test_autocreation(void)
char
*
p
;
char
sources
[
sizeof
(
eventsources
)];
char
sysdir
[
MAX_PATH
];
void
*
redir
=
0
;
RegOpenKeyA
(
HKEY_LOCAL_MACHINE
,
eventlogsvc
,
&
key
);
RegOpenKeyA
(
key
,
eventlogname
,
&
eventkey
);
...
...
@@ -974,6 +981,10 @@ static void test_autocreation(void)
RegCloseKey
(
eventkey
);
RegCloseKey
(
key
);
/* The directory that holds the eventlog files could be redirected */
if
(
pWow64DisableWow64FsRedirection
)
pWow64DisableWow64FsRedirection
(
&
redir
);
/* On Windows we also automatically get an eventlog file */
GetSystemDirectoryA
(
sysdir
,
sizeof
(
sysdir
));
...
...
@@ -994,6 +1005,9 @@ static void test_autocreation(void)
ok
(
GetFileAttributesA
(
eventlogfile
)
!=
INVALID_FILE_ATTRIBUTES
,
"Expected an eventlog file
\n
"
);
if
(
pWow64RevertWow64FsRedirection
)
pWow64RevertWow64FsRedirection
(
redir
);
}
static
void
cleanup_eventlog
(
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