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
f916b786
Commit
f916b786
authored
Sep 25, 2006
by
Saulius Krasuckas
Committed by
Alexandre Julliard
Sep 26, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lz32/tests: Compare result to predefined compressed file name, not calculated one.
parent
09765f7d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
18 deletions
+15
-18
lzexpand_main.c
dlls/lz32/tests/lzexpand_main.c
+15
-18
No files found.
dlls/lz32/tests/lzexpand_main.c
View file @
f916b786
...
...
@@ -27,8 +27,9 @@
#include "wine/test.h"
/* Compressed file names end with underscore. */
static
char
filename
[]
=
"testfile.xxx"
;
static
char
filename_
[]
=
"testfile.xx_"
;
static
char
filename
[]
=
"testfile.xxx"
;
static
char
filename2
[]
=
"testfile.yyy"
;
static
WCHAR
filename_W
[]
=
{
't'
,
'e'
,
's'
,
't'
,
'f'
,
'i'
,
'l'
,
'e'
,
'.'
,
'x'
,
'x'
,
'_'
,
0
};
...
...
@@ -55,6 +56,17 @@ static const DWORD uncompressed_data_size = sizeof(uncompressed_data) - 1;
static
char
*
buf
;
static
void
full_file_path_name_in_a_CWD
(
const
char
*
src
,
char
*
dst
)
{
DWORD
retval
;
retval
=
GetCurrentDirectoryA
(
MAX_PATH
,
dst
);
ok
(
retval
>
0
,
"GetCurrentDirectoryA returned %ld, GLE=0x%lx
\n
"
,
retval
,
GetLastError
());
lstrcatA
(
dst
,
"
\\
"
);
lstrcatA
(
dst
,
src
);
}
static
void
test_LZOpenFileA
(
void
)
{
OFSTRUCT
test
;
...
...
@@ -99,14 +111,7 @@ static void test_LZOpenFileA(void)
check for the file "foo.xx_" and open that -- at least on some
operating systems. Doesn't seem to on my copy of Win98.
*/
retval
=
GetCurrentDirectoryA
(
MAX_PATH
,
expected
);
ok
(
retval
>
0
,
"GetCurrentDirectoryA returned %ld, GLE=0x%lx
\n
"
,
retval
,
GetLastError
());
lstrcatA
(
expected
,
"
\\
"
);
lstrcatA
(
expected
,
filename
);
/* Compressed file name ends with underscore. */
retval
=
lstrlenA
(
expected
);
expected
[
retval
-
1
]
=
'_'
;
full_file_path_name_in_a_CWD
(
filename_
,
expected
);
memset
(
&
filled_0xA5
,
0xA5
,
OFS_MAXPATHNAME
);
memset
(
&
test
,
0xA5
,
sizeof
(
test
));
...
...
@@ -271,15 +276,7 @@ static void test_LZOpenFileW(void)
check for the file "foo.xx_" and open that -- at least on some
operating systems. Doesn't seem to on my copy of Win98.
*/
retval
=
GetCurrentDirectoryA
(
MAX_PATH
,
expected
);
ok
(
retval
>
0
,
"GetCurrentDirectoryW returned %ld, GLE=0x%lx
\n
"
,
retval
,
GetLastError
());
lstrcatA
(
expected
,
"
\\
"
);
/* It's probably better to use WideCharToMultiByte() on filenameW: */
lstrcatA
(
expected
,
filename
);
/* Compressed file name ends with underscore. */
retval
=
lstrlenA
(
expected
);
expected
[
retval
-
1
]
=
'_'
;
full_file_path_name_in_a_CWD
(
filename_
,
expected
);
memset
(
&
test
,
0xA5
,
sizeof
(
test
));
/* Try to open compressed file. */
...
...
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