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
e05035da
Commit
e05035da
authored
Oct 10, 2006
by
Saulius Krasuckas
Committed by
Alexandre Julliard
Oct 10, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lz32/tests: WinME sometimes returns short filenames.
parent
f29042b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
15 deletions
+22
-15
lzexpand_main.c
dlls/lz32/tests/lzexpand_main.c
+22
-15
No files found.
dlls/lz32/tests/lzexpand_main.c
View file @
e05035da
...
...
@@ -353,6 +353,7 @@ static void test_LZOpenFileA(void)
INT
file
;
static
char
badfilename_
[]
=
"badfilename_"
;
char
expected
[
MAX_PATH
];
char
short_expected
[
MAX_PATH
];
SetLastError
(
0xfaceabee
);
/* Check for nonexistent file. */
...
...
@@ -384,6 +385,7 @@ static void test_LZOpenFileA(void)
/* Check various opening options: */
memset
(
&
test
,
0xA5
,
sizeof
(
test
));
full_file_path_name_in_a_CWD
(
filename_
,
short_expected
,
TRUE
);
/* a, for reading. */
file
=
LZOpenFileA
(
filename_
,
&
test
,
OF_READ
);
...
...
@@ -392,9 +394,10 @@ static void test_LZOpenFileA(void)
"LZOpenFileA set test.cBytes to %d
\n
"
,
test
.
cBytes
);
ok
(
test
.
nErrCode
==
ERROR_SUCCESS
,
"LZOpenFileA set test.nErrCode to %d
\n
"
,
test
.
nErrCode
);
ok
(
lstrcmpA
(
test
.
szPathName
,
expected
)
==
0
,
"LZOpenFileA returned '%s', but was expected to return '%s'
\n
"
,
test
.
szPathName
,
expected
);
ok
(
lstrcmpA
(
test
.
szPathName
,
expected
)
==
0
||
lstrcmpA
(
test
.
szPathName
,
short_expected
)
==
0
,
/* Win9x */
"LZOpenFileA returned '%s', but was expected to return '%s' or '%s'
\n
"
,
test
.
szPathName
,
expected
,
short_expected
);
LZClose
(
file
);
memset
(
&
test
,
0xA5
,
sizeof
(
test
));
...
...
@@ -406,9 +409,10 @@ static void test_LZOpenFileA(void)
"LZOpenFileA set test.cBytes to %d
\n
"
,
test
.
cBytes
);
ok
(
test
.
nErrCode
==
ERROR_SUCCESS
,
"LZOpenFileA set test.nErrCode to %d
\n
"
,
test
.
nErrCode
);
ok
(
lstrcmpA
(
test
.
szPathName
,
expected
)
==
0
,
"LZOpenFileA returned '%s', but was expected to return '%s'
\n
"
,
test
.
szPathName
,
expected
);
ok
(
lstrcmpA
(
test
.
szPathName
,
expected
)
==
0
||
lstrcmpA
(
test
.
szPathName
,
short_expected
)
==
0
,
/* Win9x */
"LZOpenFileA returned '%s', but was expected to return '%s' or '%s'
\n
"
,
test
.
szPathName
,
expected
,
short_expected
);
LZClose
(
file
);
memset
(
&
test
,
0xA5
,
sizeof
(
test
));
...
...
@@ -420,9 +424,10 @@ static void test_LZOpenFileA(void)
"LZOpenFileA set test.cBytes to %d
\n
"
,
test
.
cBytes
);
ok
(
test
.
nErrCode
==
ERROR_SUCCESS
,
"LZOpenFileA set test.nErrCode to %d
\n
"
,
test
.
nErrCode
);
ok
(
lstrcmpA
(
test
.
szPathName
,
expected
)
==
0
,
"LZOpenFileA returned '%s', but was expected to return '%s'
\n
"
,
test
.
szPathName
,
expected
);
ok
(
lstrcmpA
(
test
.
szPathName
,
expected
)
==
0
||
lstrcmpA
(
test
.
szPathName
,
short_expected
)
==
0
,
/* Win9x */
"LZOpenFileA returned '%s', but was expected to return '%s' or '%s'
\n
"
,
test
.
szPathName
,
expected
,
short_expected
);
LZClose
(
file
);
memset
(
&
test
,
0xA5
,
sizeof
(
test
));
...
...
@@ -434,9 +439,10 @@ static void test_LZOpenFileA(void)
"LZOpenFileA set test.cBytes to %d
\n
"
,
test
.
cBytes
);
ok
(
test
.
nErrCode
==
ERROR_SUCCESS
,
"LZOpenFileA set test.nErrCode to %d
\n
"
,
test
.
nErrCode
);
ok
(
lstrcmpA
(
test
.
szPathName
,
expected
)
==
0
,
"LZOpenFileA returned '%s', but was expected to return '%s'
\n
"
,
test
.
szPathName
,
expected
);
ok
(
lstrcmpA
(
test
.
szPathName
,
expected
)
==
0
||
lstrcmpA
(
test
.
szPathName
,
short_expected
)
==
0
,
/* Win9x */
"LZOpenFileA returned '%s', but was expected to return '%s' or '%s'
\n
"
,
test
.
szPathName
,
expected
,
short_expected
);
LZClose
(
file
);
memset
(
&
test
,
0xA5
,
sizeof
(
test
));
...
...
@@ -448,9 +454,10 @@ static void test_LZOpenFileA(void)
"LZOpenFileA set test.cBytes to %d
\n
"
,
test
.
cBytes
);
ok
(
test
.
nErrCode
==
ERROR_SUCCESS
,
"LZOpenFileA set test.nErrCode to %d
\n
"
,
test
.
nErrCode
);
ok
(
lstrcmpA
(
test
.
szPathName
,
expected
)
==
0
,
"LZOpenFileA returned '%s', but was expected to return '%s'
\n
"
,
test
.
szPathName
,
expected
);
ok
(
lstrcmpA
(
test
.
szPathName
,
expected
)
==
0
||
lstrcmpA
(
test
.
szPathName
,
short_expected
)
==
0
,
/* Win9x */
"LZOpenFileA returned '%s', but was expected to return '%s' or '%s'
\n
"
,
test
.
szPathName
,
expected
,
short_expected
);
LZClose
(
file
);
retval
=
GetFileAttributesA
(
filename_
);
...
...
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