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
947977f6
Commit
947977f6
authored
Oct 15, 2013
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 15, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cabinet/tests: Compile with -D__WINESRC__.
parent
4553e6d1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
Makefile.in
dlls/cabinet/tests/Makefile.in
+0
-1
extract.c
dlls/cabinet/tests/extract.c
+4
-4
fdi.c
dlls/cabinet/tests/fdi.c
+2
-2
No files found.
dlls/cabinet/tests/Makefile.in
View file @
947977f6
TESTDLL
=
cabinet.dll
IMPORTS
=
cabinet
EXTRADEFS
=
-U__WINESRC__
-DWINE_STRICT_PROTOTYPES
-DWINE_NO_NAMELESS_EXTENSION
-DWIDL_C_INLINE_WRAPPERS
C_SRCS
=
\
extract.c
\
...
...
dlls/cabinet/tests/extract.c
View file @
947977f6
...
...
@@ -240,7 +240,7 @@ static INT_PTR CDECL get_open_info(char *pszName, USHORT *pdate, USHORT *ptime,
DWORD
attrs
;
BOOL
res
;
handle
=
CreateFile
(
pszName
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
handle
=
CreateFile
A
(
pszName
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
|
FILE_FLAG_SEQUENTIAL_SCAN
,
NULL
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"Failed to CreateFile %s
\n
"
,
pszName
);
...
...
@@ -251,7 +251,7 @@ static INT_PTR CDECL get_open_info(char *pszName, USHORT *pdate, USHORT *ptime,
FileTimeToLocalFileTime
(
&
finfo
.
ftLastWriteTime
,
&
filetime
);
FileTimeToDosDateTime
(
&
filetime
,
pdate
,
ptime
);
attrs
=
GetFileAttributes
(
pszName
);
attrs
=
GetFileAttributes
A
(
pszName
);
ok
(
attrs
!=
INVALID_FILE_ATTRIBUTES
,
"Failed to GetFileAttributes
\n
"
);
return
(
INT_PTR
)
handle
;
...
...
@@ -623,7 +623,7 @@ static void test_Extract(void)
/* first file exists */
createTestFile
(
"dest
\\
a.txt"
);
SetFileAttributes
(
"dest
\\
a.txt"
,
FILE_ATTRIBUTE_READONLY
);
SetFileAttributes
A
(
"dest
\\
a.txt"
,
FILE_ATTRIBUTE_READONLY
);
ZeroMemory
(
&
session
,
sizeof
(
SESSION
));
lstrcpyA
(
session
.
Destination
,
"dest"
);
session
.
Operation
=
EXTRACT_FILLFILELIST
|
EXTRACT_EXTRACTFILES
;
...
...
@@ -665,7 +665,7 @@ static void test_Extract(void)
/* third file exists */
createTestFile
(
"dest
\\
testdir
\\
c.txt"
);
SetFileAttributes
(
"dest
\\
testdir
\\
c.txt"
,
FILE_ATTRIBUTE_READONLY
);
SetFileAttributes
A
(
"dest
\\
testdir
\\
c.txt"
,
FILE_ATTRIBUTE_READONLY
);
ZeroMemory
(
&
session
,
sizeof
(
SESSION
));
lstrcpyA
(
session
.
Destination
,
"dest"
);
session
.
Operation
=
EXTRACT_FILLFILELIST
|
EXTRACT_EXTRACTFILES
;
...
...
dlls/cabinet/tests/fdi.c
View file @
947977f6
...
...
@@ -440,7 +440,7 @@ static INT_PTR CDECL get_open_info(char *pszName, USHORT *pdate, USHORT *ptime,
DWORD
attrs
;
BOOL
res
;
handle
=
CreateFile
(
pszName
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
handle
=
CreateFile
A
(
pszName
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
|
FILE_FLAG_SEQUENTIAL_SCAN
,
NULL
);
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"Failed to CreateFile %s
\n
"
,
pszName
);
...
...
@@ -451,7 +451,7 @@ static INT_PTR CDECL get_open_info(char *pszName, USHORT *pdate, USHORT *ptime,
FileTimeToLocalFileTime
(
&
finfo
.
ftLastWriteTime
,
&
filetime
);
FileTimeToDosDateTime
(
&
filetime
,
pdate
,
ptime
);
attrs
=
GetFileAttributes
(
pszName
);
attrs
=
GetFileAttributes
A
(
pszName
);
ok
(
attrs
!=
INVALID_FILE_ATTRIBUTES
,
"Failed to GetFileAttributes
\n
"
);
/* fixme: should convert attrs to *pattribs, make sure
* have a test that catches the fact that we don't?
...
...
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