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
c97da4c9
Commit
c97da4c9
authored
Dec 02, 2014
by
Vincent Povirk
Committed by
Alexandre Julliard
Dec 03, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cabinet: Accept hf == 0 in FDIIsCabinet.
parent
685c68ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
7 deletions
+0
-7
fdi.c
dlls/cabinet/fdi.c
+0
-5
fdi.c
dlls/cabinet/tests/fdi.c
+0
-2
No files found.
dlls/cabinet/fdi.c
View file @
c97da4c9
...
...
@@ -702,11 +702,6 @@ BOOL __cdecl FDIIsCabinet(HFDI hfdi, INT_PTR hf, PFDICABINETINFO pfdici)
if
(
!
fdi
)
return
FALSE
;
if
(
!
hf
)
{
SetLastError
(
ERROR_INVALID_HANDLE
);
return
FALSE
;
}
if
(
!
pfdici
)
{
SetLastError
(
ERROR_BAD_ARGUMENTS
);
return
FALSE
;
...
...
dlls/cabinet/tests/fdi.c
View file @
c97da4c9
...
...
@@ -727,14 +727,12 @@ static void test_FDIIsCabinet(void)
ZeroMemory
(
&
cabinfo
,
sizeof
(
FDICABINETINFO
));
SetLastError
(
0xdeadbeef
);
ret
=
FDIIsCabinet
(
hfdi
,
0
,
&
cabinfo
);
todo_wine
{
ok
(
ret
==
TRUE
,
"Expected TRUE, got %d
\n
"
,
ret
);
ok
(
GetLastError
()
==
0xdeadbeef
,
"Expected 0xdeadbeef, got %d
\n
"
,
GetLastError
());
ok
(
cabinfo
.
cFiles
==
4
,
"Expected 4, got %d
\n
"
,
cabinfo
.
cFiles
);
ok
(
cabinfo
.
cFolders
==
1
,
"Expected 1, got %d
\n
"
,
cabinfo
.
cFolders
);
ok
(
cabinfo
.
setID
==
0xbeef
,
"Expected 0xbeef, got %d
\n
"
,
cabinfo
.
setID
);
ok
(
cabinfo
.
cbCabinet
==
182
,
"Expected 182, got %d
\n
"
,
cabinfo
.
cbCabinet
);
}
ok
(
cabinfo
.
iCabinet
==
0
,
"Expected 0, got %d
\n
"
,
cabinfo
.
iCabinet
);
fdi_close
(
static_fdi_handle
);
...
...
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