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
29a668a6
Commit
29a668a6
authored
Feb 17, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packager: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ec0e9b3b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
19 deletions
+18
-19
Makefile.in
dlls/packager/Makefile.in
+0
-1
packager_main.c
dlls/packager/packager_main.c
+18
-18
No files found.
dlls/packager/Makefile.in
View file @
29a668a6
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
packager.dll
MODULE
=
packager.dll
IMPORTS
=
uuid shell32 shlwapi user32
IMPORTS
=
uuid shell32 shlwapi user32
...
...
dlls/packager/packager_main.c
View file @
29a668a6
...
@@ -80,7 +80,7 @@ static ULONG WINAPI OleObject_AddRef(IOleObject *iface)
...
@@ -80,7 +80,7 @@ static ULONG WINAPI OleObject_AddRef(IOleObject *iface)
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
LONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
LONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
TRACE
(
"(%p) ref=%
l
d
\n
"
,
This
,
ref
);
return
ref
;
return
ref
;
}
}
...
@@ -90,7 +90,7 @@ static ULONG WINAPI OleObject_Release(IOleObject *iface)
...
@@ -90,7 +90,7 @@ static ULONG WINAPI OleObject_Release(IOleObject *iface)
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
LONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
LONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
TRACE
(
"(%p) ref=%
l
d
\n
"
,
This
,
ref
);
if
(
!
ref
){
if
(
!
ref
){
if
(
This
->
clientsite
)
if
(
This
->
clientsite
)
...
@@ -139,7 +139,7 @@ static HRESULT WINAPI OleObject_Close(IOleObject *iface, DWORD dwSaveOption)
...
@@ -139,7 +139,7 @@ static HRESULT WINAPI OleObject_Close(IOleObject *iface, DWORD dwSaveOption)
{
{
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
TRACE
(
"(%p)->(0x%x)
\n
"
,
This
,
dwSaveOption
);
TRACE
(
"(%p)->(0x%
l
x)
\n
"
,
This
,
dwSaveOption
);
if
(
dwSaveOption
==
OLECLOSE_SAVEIFDIRTY
||
if
(
dwSaveOption
==
OLECLOSE_SAVEIFDIRTY
||
dwSaveOption
==
OLECLOSE_PROMPTSAVE
)
dwSaveOption
==
OLECLOSE_PROMPTSAVE
)
...
@@ -151,14 +151,14 @@ static HRESULT WINAPI OleObject_Close(IOleObject *iface, DWORD dwSaveOption)
...
@@ -151,14 +151,14 @@ static HRESULT WINAPI OleObject_Close(IOleObject *iface, DWORD dwSaveOption)
static
HRESULT
WINAPI
OleObject_SetMoniker
(
IOleObject
*
iface
,
DWORD
dwWhichMoniker
,
IMoniker
*
pmk
)
static
HRESULT
WINAPI
OleObject_SetMoniker
(
IOleObject
*
iface
,
DWORD
dwWhichMoniker
,
IMoniker
*
pmk
)
{
{
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
FIXME
(
"(%p)->(%d, %p)
\n
"
,
This
,
dwWhichMoniker
,
pmk
);
FIXME
(
"(%p)->(%
l
d, %p)
\n
"
,
This
,
dwWhichMoniker
,
pmk
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
OleObject_GetMoniker
(
IOleObject
*
iface
,
DWORD
dwAssign
,
DWORD
dwWhichMoniker
,
IMoniker
**
ppmk
)
static
HRESULT
WINAPI
OleObject_GetMoniker
(
IOleObject
*
iface
,
DWORD
dwAssign
,
DWORD
dwWhichMoniker
,
IMoniker
**
ppmk
)
{
{
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
FIXME
(
"(%p)->(%
d, %
d, %p)
\n
"
,
This
,
dwAssign
,
dwWhichMoniker
,
ppmk
);
FIXME
(
"(%p)->(%
ld, %l
d, %p)
\n
"
,
This
,
dwAssign
,
dwWhichMoniker
,
ppmk
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -166,14 +166,14 @@ static HRESULT WINAPI OleObject_InitFromData(IOleObject *iface, IDataObject *pDa
...
@@ -166,14 +166,14 @@ static HRESULT WINAPI OleObject_InitFromData(IOleObject *iface, IDataObject *pDa
DWORD
dwReserved
)
DWORD
dwReserved
)
{
{
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
FIXME
(
"(%p)->(%p, 0x%x, %d)
\n
"
,
This
,
pDataObject
,
fCreation
,
dwReserved
);
FIXME
(
"(%p)->(%p, 0x%x, %
l
d)
\n
"
,
This
,
pDataObject
,
fCreation
,
dwReserved
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
OleObject_GetClipboardData
(
IOleObject
*
iface
,
DWORD
dwReserved
,
IDataObject
**
ppDataObject
)
static
HRESULT
WINAPI
OleObject_GetClipboardData
(
IOleObject
*
iface
,
DWORD
dwReserved
,
IDataObject
**
ppDataObject
)
{
{
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
FIXME
(
"(%p)->(%d, %p)
\n
"
,
This
,
dwReserved
,
ppDataObject
);
FIXME
(
"(%p)->(%
l
d, %p)
\n
"
,
This
,
dwReserved
,
ppDataObject
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -188,7 +188,7 @@ static HRESULT WINAPI OleObject_DoVerb(IOleObject *iface, LONG iVerb, LPMSG lpms
...
@@ -188,7 +188,7 @@ static HRESULT WINAPI OleObject_DoVerb(IOleObject *iface, LONG iVerb, LPMSG lpms
{
{
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
iVerb
);
TRACE
(
"(%p)->(%
l
d)
\n
"
,
This
,
iVerb
);
switch
(
iVerb
){
switch
(
iVerb
){
case
0
:
case
0
:
...
@@ -229,21 +229,21 @@ static HRESULT WINAPI OleObject_GetUserClassID(IOleObject *iface, CLSID *pClsid)
...
@@ -229,21 +229,21 @@ static HRESULT WINAPI OleObject_GetUserClassID(IOleObject *iface, CLSID *pClsid)
static
HRESULT
WINAPI
OleObject_GetUserType
(
IOleObject
*
iface
,
DWORD
dwFormOfType
,
LPOLESTR
*
pszUserType
)
static
HRESULT
WINAPI
OleObject_GetUserType
(
IOleObject
*
iface
,
DWORD
dwFormOfType
,
LPOLESTR
*
pszUserType
)
{
{
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
FIXME
(
"(%p)->(%d, %p)
\n
"
,
This
,
dwFormOfType
,
pszUserType
);
FIXME
(
"(%p)->(%
l
d, %p)
\n
"
,
This
,
dwFormOfType
,
pszUserType
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
OleObject_SetExtent
(
IOleObject
*
iface
,
DWORD
dwDrawAspect
,
SIZEL
*
psizel
)
static
HRESULT
WINAPI
OleObject_SetExtent
(
IOleObject
*
iface
,
DWORD
dwDrawAspect
,
SIZEL
*
psizel
)
{
{
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
FIXME
(
"(%p)->(%d, %p)
\n
"
,
This
,
dwDrawAspect
,
psizel
);
FIXME
(
"(%p)->(%
l
d, %p)
\n
"
,
This
,
dwDrawAspect
,
psizel
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
OleObject_GetExtent
(
IOleObject
*
iface
,
DWORD
dwDrawAspect
,
SIZEL
*
psizel
)
static
HRESULT
WINAPI
OleObject_GetExtent
(
IOleObject
*
iface
,
DWORD
dwDrawAspect
,
SIZEL
*
psizel
)
{
{
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
FIXME
(
"(%p)->(%d, %p)
\n
"
,
This
,
dwDrawAspect
,
psizel
);
FIXME
(
"(%p)->(%
l
d, %p)
\n
"
,
This
,
dwDrawAspect
,
psizel
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -257,7 +257,7 @@ static HRESULT WINAPI OleObject_Advise(IOleObject *iface, IAdviseSink *pAdvSink,
...
@@ -257,7 +257,7 @@ static HRESULT WINAPI OleObject_Advise(IOleObject *iface, IAdviseSink *pAdvSink,
static
HRESULT
WINAPI
OleObject_Unadvise
(
IOleObject
*
iface
,
DWORD
dwConnection
)
static
HRESULT
WINAPI
OleObject_Unadvise
(
IOleObject
*
iface
,
DWORD
dwConnection
)
{
{
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
FIXME
(
"(%p)->(%d)
\n
"
,
This
,
dwConnection
);
FIXME
(
"(%p)->(%
l
d)
\n
"
,
This
,
dwConnection
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -272,7 +272,7 @@ static HRESULT WINAPI OleObject_GetMiscStatus(IOleObject *iface, DWORD dwAspect,
...
@@ -272,7 +272,7 @@ static HRESULT WINAPI OleObject_GetMiscStatus(IOleObject *iface, DWORD dwAspect,
{
{
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
struct
Package
*
This
=
impl_from_IOleObject
(
iface
);
TRACE
(
"(%p)->(%d, %p)
\n
"
,
This
,
dwAspect
,
pdwStatus
);
TRACE
(
"(%p)->(%
l
d, %p)
\n
"
,
This
,
dwAspect
,
pdwStatus
);
if
(
!
pdwStatus
)
if
(
!
pdwStatus
)
return
E_INVALIDARG
;
return
E_INVALIDARG
;
...
@@ -370,7 +370,7 @@ static HRESULT discard_string(struct Package *This, IStream *stream)
...
@@ -370,7 +370,7 @@ static HRESULT discard_string(struct Package *This, IStream *stream)
do
{
do
{
hr
=
IStream_Read
(
stream
,
&
chr
,
1
,
&
nbytes
);
hr
=
IStream_Read
(
stream
,
&
chr
,
1
,
&
nbytes
);
if
(
FAILED
(
hr
)
||
!
nbytes
){
if
(
FAILED
(
hr
)
||
!
nbytes
){
TRACE
(
"Unexpected end of stream or Read failed with %08x
\n
"
,
hr
);
TRACE
(
"Unexpected end of stream or Read failed with %08
l
x
\n
"
,
hr
);
return
(
hr
==
S_OK
||
hr
==
S_FALSE
)
?
E_FAIL
:
hr
;
return
(
hr
==
S_OK
||
hr
==
S_FALSE
)
?
E_FAIL
:
hr
;
}
}
}
while
(
chr
);
}
while
(
chr
);
...
@@ -398,7 +398,7 @@ static HRESULT WINAPI PersistStorage_Load(IPersistStorage* iface,
...
@@ -398,7 +398,7 @@ static HRESULT WINAPI PersistStorage_Load(IPersistStorage* iface,
hr
=
IStorage_OpenStream
(
pStg
,
L"
\1
Ole10Native"
,
NULL
,
hr
=
IStorage_OpenStream
(
pStg
,
L"
\1
Ole10Native"
,
NULL
,
STGM_READ
|
STGM_SHARE_EXCLUSIVE
,
0
,
&
stream
);
STGM_READ
|
STGM_SHARE_EXCLUSIVE
,
0
,
&
stream
);
if
(
FAILED
(
hr
)){
if
(
FAILED
(
hr
)){
TRACE
(
"OpenStream gave: %08x
\n
"
,
hr
);
TRACE
(
"OpenStream gave: %08
l
x
\n
"
,
hr
);
return
hr
;
return
hr
;
}
}
...
@@ -485,7 +485,7 @@ static HRESULT WINAPI PersistStorage_Load(IPersistStorage* iface,
...
@@ -485,7 +485,7 @@ static HRESULT WINAPI PersistStorage_Load(IPersistStorage* iface,
CREATE_NEW
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
CREATE_NEW
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
while
(
file
==
INVALID_HANDLE_VALUE
){
while
(
file
==
INVALID_HANDLE_VALUE
){
if
(
GetLastError
()
!=
ERROR_FILE_EXISTS
){
if
(
GetLastError
()
!=
ERROR_FILE_EXISTS
){
WARN
(
"CreateFile failed: %u
\n
"
,
GetLastError
());
WARN
(
"CreateFile failed: %
l
u
\n
"
,
GetLastError
());
hr
=
E_FAIL
;
hr
=
E_FAIL
;
goto
exit
;
goto
exit
;
}
}
...
@@ -507,7 +507,7 @@ static HRESULT WINAPI PersistStorage_Load(IPersistStorage* iface,
...
@@ -507,7 +507,7 @@ static HRESULT WINAPI PersistStorage_Load(IPersistStorage* iface,
hr
=
IStream_Read
(
stream
,
data
,
min
(
sizeof
(
data
),
payload_size
),
&
nbytes
);
hr
=
IStream_Read
(
stream
,
data
,
min
(
sizeof
(
data
),
payload_size
),
&
nbytes
);
if
(
FAILED
(
hr
)
||
nbytes
==
0
){
if
(
FAILED
(
hr
)
||
nbytes
==
0
){
TRACE
(
"Unexpected end of file, or Read failed with %08x
\n
"
,
hr
);
TRACE
(
"Unexpected end of file, or Read failed with %08
l
x
\n
"
,
hr
);
if
(
hr
==
S_OK
||
hr
==
S_FALSE
)
if
(
hr
==
S_OK
||
hr
==
S_FALSE
)
hr
=
E_FAIL
;
hr
=
E_FAIL
;
goto
exit
;
goto
exit
;
...
@@ -528,7 +528,7 @@ exit:
...
@@ -528,7 +528,7 @@ exit:
}
}
IStream_Release
(
stream
);
IStream_Release
(
stream
);
TRACE
(
"Returning: %08x
\n
"
,
hr
);
TRACE
(
"Returning: %08
l
x
\n
"
,
hr
);
return
hr
;
return
hr
;
}
}
...
...
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