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
f29042b3
Commit
f29042b3
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: Be more verbose and aware of root directory.
parent
346d02ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
lzexpand_main.c
dlls/lz32/tests/lzexpand_main.c
+9
-5
No files found.
dlls/lz32/tests/lzexpand_main.c
View file @
f29042b3
...
...
@@ -77,14 +77,18 @@ static void full_file_path_name_in_a_CWD(const char *src, char *dst, BOOL expect
char
shortname
[
MAX_PATH
];
retval
=
GetCurrentDirectoryA
(
MAX_PATH
,
dst
);
ok
(
retval
>
0
,
"GetCurrentDirectoryA returned %ld, GLE=
0x%lx
\n
"
,
ok
(
retval
>
0
,
"GetCurrentDirectoryA returned %ld, GLE=
%ld
\n
"
,
retval
,
GetLastError
());
lstrcatA
(
dst
,
"
\\
"
);
if
(
dst
[
retval
-
1
]
!=
'\\'
)
/* Append backslash only when it's missing */
lstrcatA
(
dst
,
"
\\
"
);
lstrcatA
(
dst
,
src
);
if
(
expect_short
)
{
memcpy
(
shortname
,
dst
,
MAX_PATH
);
GetShortPathName
(
shortname
,
dst
,
MAX_PATH
-
1
);
retval
=
GetShortPathName
(
shortname
,
dst
,
MAX_PATH
-
1
);
ok
(
retval
>
0
,
"GetShortPathName returned %ld for '%s', GLE=%ld
\n
"
,
retval
,
dst
,
GetLastError
());
}
}
...
...
@@ -95,7 +99,7 @@ static void create_file(char *fname)
DWORD
retval
;
file
=
LZOpenFileA
(
fname
,
&
ofs
,
OF_CREATE
);
ok
(
file
>=
0
,
"LZOpenFileA failed
on creation
\n
"
);
ok
(
file
>=
0
,
"LZOpenFileA failed
to create '%s'
\n
"
,
fname
);
LZClose
(
file
);
retval
=
GetFileAttributesA
(
fname
);
ok
(
retval
!=
INVALID_FILE_ATTRIBUTES
,
"GetFileAttributesA('%s'): error %ld
\n
"
,
ofs
.
szPathName
,
GetLastError
());
...
...
@@ -108,7 +112,7 @@ static void delete_file(char *fname)
DWORD
retval
;
file
=
LZOpenFileA
(
fname
,
&
ofs
,
OF_DELETE
);
ok
(
file
>=
0
,
"LZOpenFileA failed
on delete
\n
"
);
ok
(
file
>=
0
,
"LZOpenFileA failed
to delete '%s'
\n
"
,
fname
);
LZClose
(
file
);
retval
=
GetFileAttributesA
(
fname
);
ok
(
retval
==
INVALID_FILE_ATTRIBUTES
,
"GetFileAttributesA succeeded on deleted file ('%s')
\n
"
,
ofs
.
szPathName
);
...
...
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