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
097fc377
Commit
097fc377
authored
Feb 11, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
itss: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
61becab4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
27 deletions
+26
-27
Makefile.in
dlls/itss/Makefile.in
+0
-1
itss.c
dlls/itss/itss.c
+3
-3
protocol.c
dlls/itss/protocol.c
+15
-15
storage.c
dlls/itss/storage.c
+8
-8
No files found.
dlls/itss/Makefile.in
View file @
097fc377
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
itss.dll
IMPORTS
=
uuid urlmon shlwapi ole32
...
...
dlls/itss/itss.c
View file @
097fc377
...
...
@@ -231,7 +231,7 @@ static HRESULT WINAPI ITStorageImpl_StgCreateDocfile(
{
ITStorageImpl
*
This
=
impl_from_IITStorage
(
iface
);
TRACE
(
"%p %s %
u %
u %p
\n
"
,
This
,
TRACE
(
"%p %s %
lu %l
u %p
\n
"
,
This
,
debugstr_w
(
pwcsName
),
grfMode
,
reserved
,
ppstgOpen
);
return
ITSS_StgOpenStorage
(
pwcsName
,
NULL
,
grfMode
,
...
...
@@ -279,7 +279,7 @@ static HRESULT WINAPI ITStorageImpl_StgOpenStorage(
{
ITStorageImpl
*
This
=
impl_from_IITStorage
(
iface
);
TRACE
(
"%p %s %p %d %p
\n
"
,
This
,
debugstr_w
(
pwcsName
),
TRACE
(
"%p %s %p %
l
d %p
\n
"
,
This
,
debugstr_w
(
pwcsName
),
pstgPriority
,
grfMode
,
snbExclude
);
return
ITSS_StgOpenStorage
(
pwcsName
,
pstgPriority
,
grfMode
,
...
...
@@ -379,6 +379,6 @@ static HRESULT ITSS_create(IUnknown *pUnkOuter, LPVOID *ppObj)
HRESULT
WINAPI
DllCanUnloadNow
(
void
)
{
TRACE
(
"dll_count = %u
\n
"
,
dll_count
);
TRACE
(
"dll_count = %
l
u
\n
"
,
dll_count
);
return
dll_count
?
S_FALSE
:
S_OK
;
}
dlls/itss/protocol.c
View file @
097fc377
...
...
@@ -101,7 +101,7 @@ static ULONG WINAPI ITSProtocol_AddRef(IUnknown *iface)
{
ITSProtocol
*
This
=
impl_from_IUnknown
(
iface
);
LONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
TRACE
(
"(%p) ref=%
l
d
\n
"
,
This
,
ref
);
return
ref
;
}
...
...
@@ -110,7 +110,7 @@ static ULONG WINAPI ITSProtocol_Release(IUnknown *iface)
ITSProtocol
*
This
=
impl_from_IUnknown
(
iface
);
LONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
TRACE
(
"(%p) ref=%
l
d
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
release_chm
(
This
);
...
...
@@ -231,7 +231,7 @@ static HRESULT WINAPI ITSProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
int
res
;
HRESULT
hres
;
TRACE
(
"(%p)->(%s %p %p %08
x %l
x)
\n
"
,
This
,
debugstr_w
(
szUrl
),
pOIProtSink
,
TRACE
(
"(%p)->(%s %p %p %08
lx %I
x)
\n
"
,
This
,
debugstr_w
(
szUrl
),
pOIProtSink
,
pOIBindInfo
,
grfPI
,
dwReserved
);
ptr
=
skip_schema
(
szUrl
);
...
...
@@ -242,7 +242,7 @@ static HRESULT WINAPI ITSProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
bindinfo
.
cbSize
=
sizeof
(
BINDINFO
);
hres
=
IInternetBindInfo_GetBindInfo
(
pOIBindInfo
,
&
bindf
,
&
bindinfo
);
if
(
FAILED
(
hres
))
{
WARN
(
"GetBindInfo failed: %08x
\n
"
,
hres
);
WARN
(
"GetBindInfo failed: %08
l
x
\n
"
,
hres
);
return
hres
;
}
...
...
@@ -253,7 +253,7 @@ static HRESULT WINAPI ITSProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
memcpy
(
file_name
,
ptr
,
len
*
sizeof
(
WCHAR
));
hres
=
UrlUnescapeW
(
file_name
,
NULL
,
&
len
,
URL_UNESCAPE_INPLACE
);
if
(
FAILED
(
hres
))
{
WARN
(
"UrlUnescape failed: %08x
\n
"
,
hres
);
WARN
(
"UrlUnescape failed: %08
l
x
\n
"
,
hres
);
HeapFree
(
GetProcessHeap
(),
0
,
file_name
);
return
hres
;
}
...
...
@@ -322,7 +322,7 @@ static HRESULT WINAPI ITSProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
BSCF_FIRSTDATANOTIFICATION
|
BSCF_DATAFULLYAVAILABLE
,
chm_object
.
length
,
chm_object
.
length
);
if
(
FAILED
(
hres
))
{
WARN
(
"ReportData failed: %08x
\n
"
,
hres
);
WARN
(
"ReportData failed: %08
l
x
\n
"
,
hres
);
release_chm
(
This
);
return
report_result
(
pOIProtSink
,
hres
);
}
...
...
@@ -343,7 +343,7 @@ static HRESULT WINAPI ITSProtocol_Abort(IInternetProtocol *iface, HRESULT hrReas
DWORD
dwOptions
)
{
ITSProtocol
*
This
=
impl_from_IInternetProtocol
(
iface
);
FIXME
(
"(%p)->(%08
x %08
x)
\n
"
,
This
,
hrReason
,
dwOptions
);
FIXME
(
"(%p)->(%08
lx %08l
x)
\n
"
,
This
,
hrReason
,
dwOptions
);
return
E_NOTIMPL
;
}
...
...
@@ -351,7 +351,7 @@ static HRESULT WINAPI ITSProtocol_Terminate(IInternetProtocol *iface, DWORD dwOp
{
ITSProtocol
*
This
=
impl_from_IInternetProtocol
(
iface
);
TRACE
(
"(%p)->(%08x)
\n
"
,
This
,
dwOptions
);
TRACE
(
"(%p)->(%08
l
x)
\n
"
,
This
,
dwOptions
);
return
S_OK
;
}
...
...
@@ -375,7 +375,7 @@ static HRESULT WINAPI ITSProtocol_Read(IInternetProtocol *iface, void *pv,
{
ITSProtocol
*
This
=
impl_from_IInternetProtocol
(
iface
);
TRACE
(
"(%p)->(%p %u %p)
\n
"
,
This
,
pv
,
cb
,
pcbRead
);
TRACE
(
"(%p)->(%p %
l
u %p)
\n
"
,
This
,
pv
,
cb
,
pcbRead
);
if
(
!
This
->
chm_file
)
return
INET_E_DATA_NOT_AVAILABLE
;
...
...
@@ -390,7 +390,7 @@ static HRESULT WINAPI ITSProtocol_Seek(IInternetProtocol *iface, LARGE_INTEGER d
DWORD
dwOrigin
,
ULARGE_INTEGER
*
plibNewPosition
)
{
ITSProtocol
*
This
=
impl_from_IInternetProtocol
(
iface
);
FIXME
(
"(%p)->(%
d %
d %p)
\n
"
,
This
,
dlibMove
.
u
.
LowPart
,
dwOrigin
,
plibNewPosition
);
FIXME
(
"(%p)->(%
ld %l
d %p)
\n
"
,
This
,
dlibMove
.
u
.
LowPart
,
dwOrigin
,
plibNewPosition
);
return
E_NOTIMPL
;
}
...
...
@@ -398,7 +398,7 @@ static HRESULT WINAPI ITSProtocol_LockRequest(IInternetProtocol *iface, DWORD dw
{
ITSProtocol
*
This
=
impl_from_IInternetProtocol
(
iface
);
TRACE
(
"(%p)->(%08x)
\n
"
,
This
,
dwOptions
);
TRACE
(
"(%p)->(%08
l
x)
\n
"
,
This
,
dwOptions
);
return
S_OK
;
}
...
...
@@ -453,7 +453,7 @@ static HRESULT WINAPI ITSProtocolInfo_ParseUrl(IInternetProtocolInfo *iface, LPC
{
ITSProtocol
*
This
=
impl_from_IInternetProtocolInfo
(
iface
);
TRACE
(
"(%p)->(%s %x %08
x %p %d %p %
d)
\n
"
,
This
,
debugstr_w
(
pwzUrl
),
ParseAction
,
TRACE
(
"(%p)->(%s %x %08
lx %p %ld %p %l
d)
\n
"
,
This
,
debugstr_w
(
pwzUrl
),
ParseAction
,
dwParseFlags
,
pwzResult
,
cchResult
,
pcchResult
,
dwReserved
);
switch
(
ParseAction
)
{
...
...
@@ -478,7 +478,7 @@ static HRESULT WINAPI ITSProtocolInfo_CombineUrl(IInternetProtocolInfo *iface,
LPCWSTR
base_end
,
ptr
;
DWORD
rel_len
;
TRACE
(
"(%p)->(%s %s %08
x %p %d %p %
d)
\n
"
,
This
,
debugstr_w
(
pwzBaseUrl
),
TRACE
(
"(%p)->(%s %s %08
lx %p %ld %p %l
d)
\n
"
,
This
,
debugstr_w
(
pwzBaseUrl
),
debugstr_w
(
pwzRelativeUrl
),
dwCombineFlags
,
pwzResult
,
cchResult
,
pcchResult
,
dwReserved
);
...
...
@@ -520,7 +520,7 @@ static HRESULT WINAPI ITSProtocolInfo_CompareUrl(IInternetProtocolInfo *iface, L
LPCWSTR
pwzUrl2
,
DWORD
dwCompareFlags
)
{
ITSProtocol
*
This
=
impl_from_IInternetProtocolInfo
(
iface
);
FIXME
(
"%p)->(%s %s %08x)
\n
"
,
This
,
debugstr_w
(
pwzUrl1
),
debugstr_w
(
pwzUrl2
),
dwCompareFlags
);
FIXME
(
"%p)->(%s %s %08
l
x)
\n
"
,
This
,
debugstr_w
(
pwzUrl1
),
debugstr_w
(
pwzUrl2
),
dwCompareFlags
);
return
E_NOTIMPL
;
}
...
...
@@ -529,7 +529,7 @@ static HRESULT WINAPI ITSProtocolInfo_QueryInfo(IInternetProtocolInfo *iface, LP
DWORD
dwReserved
)
{
ITSProtocol
*
This
=
impl_from_IInternetProtocolInfo
(
iface
);
FIXME
(
"(%p)->(%s %08x %08
x %p %d %p %
d)
\n
"
,
This
,
debugstr_w
(
pwzUrl
),
QueryOption
,
FIXME
(
"(%p)->(%s %08x %08
lx %p %ld %p %l
d)
\n
"
,
This
,
debugstr_w
(
pwzUrl
),
QueryOption
,
dwQueryFlags
,
pBuffer
,
cbBuffer
,
pcbBuf
,
dwReserved
);
return
E_NOTIMPL
;
}
...
...
dlls/itss/storage.c
View file @
097fc377
...
...
@@ -151,7 +151,7 @@ static HRESULT WINAPI ITSS_IEnumSTATSTG_Next(
DWORD
len
,
n
;
struct
enum_info
*
cur
;
TRACE
(
"%p %u %p %p
\n
"
,
This
,
celt
,
rgelt
,
pceltFetched
);
TRACE
(
"%p %
l
u %p %p
\n
"
,
This
,
celt
,
rgelt
,
pceltFetched
);
cur
=
This
->
current
;
n
=
0
;
...
...
@@ -203,7 +203,7 @@ static HRESULT WINAPI ITSS_IEnumSTATSTG_Skip(
DWORD
n
;
struct
enum_info
*
cur
;
TRACE
(
"%p %u
\n
"
,
This
,
celt
);
TRACE
(
"%p %
l
u
\n
"
,
This
,
celt
);
cur
=
This
->
current
;
n
=
0
;
...
...
@@ -340,7 +340,7 @@ static HRESULT WINAPI ITSS_IStorageImpl_OpenStream(
int
r
;
WCHAR
*
path
,
*
p
;
TRACE
(
"%p %s %p %
u %
u %p
\n
"
,
This
,
debugstr_w
(
pwcsName
),
TRACE
(
"%p %s %p %
lu %l
u %p
\n
"
,
This
,
debugstr_w
(
pwcsName
),
reserved1
,
grfMode
,
reserved2
,
ppstm
);
len
=
lstrlenW
(
This
->
dir
)
+
lstrlenW
(
pwcsName
)
+
1
;
...
...
@@ -408,7 +408,7 @@ static HRESULT WINAPI ITSS_IStorageImpl_OpenStorage(
WCHAR
*
path
,
*
p
;
DWORD
len
;
TRACE
(
"%p %s %p %
u %p %
u %p
\n
"
,
This
,
debugstr_w
(
pwcsName
),
TRACE
(
"%p %s %p %
lu %p %l
u %p
\n
"
,
This
,
debugstr_w
(
pwcsName
),
pstgPriority
,
grfMode
,
snbExclude
,
reserved
,
ppstg
);
chmfile
=
chm_dup
(
This
->
chmfile
);
...
...
@@ -515,7 +515,7 @@ static HRESULT WINAPI ITSS_IStorageImpl_EnumElements(
ITSS_IStorageImpl
*
This
=
impl_from_IStorage
(
iface
);
IEnumSTATSTG_Impl
*
stgenum
;
TRACE
(
"%p %
d %p %
d %p
\n
"
,
This
,
reserved1
,
reserved2
,
reserved3
,
ppenum
);
TRACE
(
"%p %
ld %p %l
d %p
\n
"
,
This
,
reserved1
,
reserved2
,
reserved3
,
ppenum
);
stgenum
=
ITSS_create_enum
();
if
(
!
stgenum
)
...
...
@@ -704,7 +704,7 @@ static HRESULT WINAPI ITSS_IStream_Read(
IStream_Impl
*
This
=
impl_from_IStream
(
iface
);
ULONG
count
;
TRACE
(
"%p %p %u %p
\n
"
,
This
,
pv
,
cb
,
pcbRead
);
TRACE
(
"%p %p %
l
u %p
\n
"
,
This
,
pv
,
cb
,
pcbRead
);
count
=
chm_retrieve_object
(
This
->
stg
->
chmfile
,
&
This
->
ui
,
pv
,
This
->
addr
,
cb
);
...
...
@@ -734,7 +734,7 @@ static HRESULT WINAPI ITSS_IStream_Seek(
IStream_Impl
*
This
=
impl_from_IStream
(
iface
);
LONGLONG
newpos
;
TRACE
(
"%p %s %u %p
\n
"
,
This
,
TRACE
(
"%p %s %
l
u %p
\n
"
,
This
,
wine_dbgstr_longlong
(
dlibMove
.
QuadPart
),
dwOrigin
,
plibNewPosition
);
newpos
=
This
->
addr
;
...
...
@@ -822,7 +822,7 @@ static HRESULT WINAPI ITSS_IStream_Stat(
{
IStream_Impl
*
This
=
impl_from_IStream
(
iface
);
TRACE
(
"%p %p %d
\n
"
,
This
,
pstatstg
,
grfStatFlag
);
TRACE
(
"%p %p %
l
d
\n
"
,
This
,
pstatstg
,
grfStatFlag
);
memset
(
pstatstg
,
0
,
sizeof
*
pstatstg
);
if
(
!
(
grfStatFlag
&
STATFLAG_NONAME
)
)
...
...
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