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
4f16c2f7
Commit
4f16c2f7
authored
Jun 12, 2012
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Jun 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windowscodecs: Reimplement TiffDecoder_GetFrameCount using TIFFNumberOfDirectories.
parent
7fbf5c23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
tiffformat.c
dlls/windowscodecs/tiffformat.c
+3
-4
No files found.
dlls/windowscodecs/tiffformat.c
View file @
4f16c2f7
...
...
@@ -58,7 +58,7 @@ static void *libtiff_handle;
#define MAKE_FUNCPTR(f) static typeof(f) * p##f
MAKE_FUNCPTR
(
TIFFClientOpen
);
MAKE_FUNCPTR
(
TIFFClose
);
MAKE_FUNCPTR
(
TIFF
CurrentDirectory
);
MAKE_FUNCPTR
(
TIFF
NumberOfDirectories
);
MAKE_FUNCPTR
(
TIFFGetField
);
MAKE_FUNCPTR
(
TIFFIsByteSwapped
);
MAKE_FUNCPTR
(
TIFFReadDirectory
);
...
...
@@ -89,7 +89,7 @@ static void *load_libtiff(void)
}
LOAD_FUNCPTR
(
TIFFClientOpen
);
LOAD_FUNCPTR
(
TIFFClose
);
LOAD_FUNCPTR
(
TIFF
CurrentDirectory
);
LOAD_FUNCPTR
(
TIFF
NumberOfDirectories
);
LOAD_FUNCPTR
(
TIFFGetField
);
LOAD_FUNCPTR
(
TIFFIsByteSwapped
);
LOAD_FUNCPTR
(
TIFFReadDirectory
);
...
...
@@ -662,8 +662,7 @@ static HRESULT WINAPI TiffDecoder_GetFrameCount(IWICBitmapDecoder *iface,
}
EnterCriticalSection
(
&
This
->
lock
);
while
(
pTIFFReadDirectory
(
This
->
tiff
))
{
}
*
pCount
=
pTIFFCurrentDirectory
(
This
->
tiff
)
+
1
;
*
pCount
=
pTIFFNumberOfDirectories
(
This
->
tiff
);
LeaveCriticalSection
(
&
This
->
lock
);
TRACE
(
"(%p) <-- %i
\n
"
,
iface
,
*
pCount
);
...
...
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