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
96e9e1ea
Commit
96e9e1ea
authored
Mar 08, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wevtapi/tests: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f42ab60a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
Makefile.in
dlls/wevtapi/tests/Makefile.in
+0
-1
wevtapi.c
dlls/wevtapi/tests/wevtapi.c
+8
-8
No files found.
dlls/wevtapi/tests/Makefile.in
View file @
96e9e1ea
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
TESTDLL
=
wevtapi.dll
IMPORTS
=
wevtapi advapi32
...
...
dlls/wevtapi/tests/wevtapi.c
View file @
96e9e1ea
...
...
@@ -42,24 +42,24 @@ static void test_EvtGetChannelConfigProperty(void)
skip
(
"Not enough privileges to modify HKLM
\n
"
);
return
;
}
ok
(
ret
==
ERROR_SUCCESS
,
"RegCreateKey error %u
\n
"
,
ret
);
ok
(
ret
==
ERROR_SUCCESS
,
"RegCreateKey error %
l
u
\n
"
,
ret
);
config
=
EvtOpenChannelConfig
(
NULL
,
L"Winetest"
,
0
);
ok
(
config
!=
NULL
,
"EvtOpenChannelConfig error %u
\n
"
,
GetLastError
());
ok
(
config
!=
NULL
,
"EvtOpenChannelConfig error %
l
u
\n
"
,
GetLastError
());
ret
=
EvtGetChannelConfigProperty
(
config
,
EvtChannelLoggingConfigLogFilePath
,
0
,
0
,
NULL
,
&
size
);
ok
(
!
ret
,
"EvtGetChannelConfigProperty should fail
\n
"
);
ok
(
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"got %u
\n
"
,
GetLastError
());
ok
(
size
<
sizeof
(
path
),
"got %u
\n
"
,
size
);
ok
(
GetLastError
()
==
ERROR_INSUFFICIENT_BUFFER
,
"got %
l
u
\n
"
,
GetLastError
());
ok
(
size
<
sizeof
(
path
),
"got %
l
u
\n
"
,
size
);
memset
(
&
path
,
0
,
sizeof
(
path
));
path
.
var
.
Count
=
0xdeadbeef
;
path
.
var
.
Type
=
0xdeadbeef
;
ret
=
EvtGetChannelConfigProperty
(
config
,
EvtChannelLoggingConfigLogFilePath
,
0
,
size
,
(
EVT_VARIANT
*
)
&
path
,
&
size
);
ok
(
ret
,
"EvtGetChannelConfigProperty error %u
\n
"
,
GetLastError
());
ok
(
path
.
var
.
Count
==
0xdeadbeef
,
"got %u
\n
"
,
path
.
var
.
Count
);
ok
(
path
.
var
.
Type
==
EvtVarTypeString
,
"got %u
\n
"
,
path
.
var
.
Type
);
ok
(
size
==
sizeof
(
EVT_VARIANT
)
+
(
wcslen
(
path
.
var
.
u
.
StringVal
)
+
1
)
*
sizeof
(
WCHAR
),
"got %u
\n
"
,
size
);
ok
(
ret
,
"EvtGetChannelConfigProperty error %
l
u
\n
"
,
GetLastError
());
ok
(
path
.
var
.
Count
==
0xdeadbeef
,
"got %
l
u
\n
"
,
path
.
var
.
Count
);
ok
(
path
.
var
.
Type
==
EvtVarTypeString
,
"got %
l
u
\n
"
,
path
.
var
.
Type
);
ok
(
size
==
sizeof
(
EVT_VARIANT
)
+
(
wcslen
(
path
.
var
.
u
.
StringVal
)
+
1
)
*
sizeof
(
WCHAR
),
"got %
l
u
\n
"
,
size
);
ok
(
path
.
var
.
u
.
StringVal
==
path
.
buf
,
"path.var.u.StringVal = %p, path.buf = %p
\n
"
,
path
.
var
.
u
.
StringVal
,
path
.
buf
);
EvtClose
(
config
);
...
...
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