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
0f6cb886
Commit
0f6cb886
authored
Jun 21, 2006
by
Saulius Krasuckas
Committed by
Alexandre Julliard
Jun 21, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lz32: Small test fixes.
parent
5de24f03
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
lzexpand_main.c
dlls/lz32/tests/lzexpand_main.c
+6
-4
No files found.
dlls/lz32/tests/lzexpand_main.c
View file @
0f6cb886
...
...
@@ -274,19 +274,21 @@ static void test_LZOpenFileW(void)
ok
(
retval
>
0
,
"GetCurrentDirectoryW returned %ld, GLE=0x%lx
\n
"
,
retval
,
GetLastError
());
lstrcatA
(
expected
,
"
\\
"
);
/*
We probably should use WideCharToMultiByte() on filenameW here
: */
/*
It's probably better to use WideCharToMultiByte() on filenameW
: */
lstrcatA
(
expected
,
filename
);
/* Compressed file name ends with underscore. */
retval
=
lstrlenA
(
expected
);
expected
[
retval
-
1
]
=
'_'
;
memset
(
&
test
,
0xA5
,
sizeof
(
test
));
/* Try to open compressed file. */
file
=
LZOpenFileW
(
filenameW
,
&
test
,
OF_EXIST
);
ok
(
file
>=
0
,
"LZOpenFileW failed on switching to a compressed file name
\n
"
);
ok
(
test
.
cBytes
==
sizeof
(
OFSTRUCT
),
"LZOpenFileW set test.cBytes to %d
\n
"
,
test
.
cBytes
);
ok
(
test
.
nErrCode
==
0
,
"LZOpenFileW set test.nErrCode to %d
\n
"
,
ok
(
test
.
nErrCode
==
ERROR_SUCCESS
,
"LZOpenFileW set test.nErrCode to %d
\n
"
,
test
.
nErrCode
);
/* Note that W-function returns A-string by a OFSTRUCT.szPathName: */
ok
(
lstrcmpA
(
test
.
szPathName
,
expected
)
==
0
,
"LZOpenFileW returned '%s', but was expected to return '%s'
\n
"
,
test
.
szPathName
,
expected
);
...
...
@@ -294,12 +296,12 @@ static void test_LZOpenFileW(void)
/* Delete the file then make sure it doesn't exist anymore. */
file
=
LZOpenFileW
(
filename_W
,
&
test
,
OF_DELETE
);
ok
(
file
>=
0
,
"LZOpenFile
A
failed on delete
\n
"
);
ok
(
file
>=
0
,
"LZOpenFile
W
failed on delete
\n
"
);
LZClose
(
file
);
retval
=
GetFileAttributesW
(
filename_W
);
ok
(
retval
==
INVALID_FILE_ATTRIBUTES
,
"GetFileAttributes
A
succeeded on deleted file
\n
"
);
"GetFileAttributes
W
succeeded on deleted file
\n
"
);
}
...
...
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