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
69a9931a
Commit
69a9931a
authored
Feb 07, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemsibuilder: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
11afedfe
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
Makefile.in
programs/winemsibuilder/Makefile.in
+0
-1
main.c
programs/winemsibuilder/main.c
+3
-3
No files found.
programs/winemsibuilder/Makefile.in
View file @
69a9931a
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
winemsibuilder.exe
IMPORTS
=
msi ole32
...
...
programs/winemsibuilder/main.c
View file @
69a9931a
...
...
@@ -188,7 +188,7 @@ static int add_stream( const WCHAR *msifile, const WCHAR *stream, const WCHAR *f
hr
=
StgOpenStorage
(
msifile
,
NULL
,
STGM_TRANSACTED
|
STGM_READWRITE
|
STGM_SHARE_EXCLUSIVE
,
NULL
,
0
,
&
stg
);
if
(
hr
!=
S_OK
)
{
WINE_WARN
(
"failed to open storage %s (0x%08x)
\n
"
,
wine_dbgstr_w
(
msifile
),
hr
);
WINE_WARN
(
"failed to open storage %s (0x%08
l
x)
\n
"
,
wine_dbgstr_w
(
msifile
),
hr
);
return
1
;
}
encname
=
encode_stream
(
stream
);
...
...
@@ -200,13 +200,13 @@ static int add_stream( const WCHAR *msifile, const WCHAR *stream, const WCHAR *f
hr
=
IStorage_CreateStream
(
stg
,
encname
,
STGM_CREATE
|
STGM_WRITE
|
STGM_SHARE_EXCLUSIVE
,
0
,
0
,
&
stm
);
if
(
hr
!=
S_OK
)
{
WINE_WARN
(
"failed to create stream %s (0x%08x)
\n
"
,
wine_dbgstr_w
(
encname
),
hr
);
WINE_WARN
(
"failed to create stream %s (0x%08
l
x)
\n
"
,
wine_dbgstr_w
(
encname
),
hr
);
goto
done
;
}
handle
=
CreateFileW
(
file
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
0
,
NULL
);
if
(
handle
==
INVALID_HANDLE_VALUE
)
{
WINE_WARN
(
"failed to open file %s (%u)
\n
"
,
wine_dbgstr_w
(
file
),
GetLastError
()
);
WINE_WARN
(
"failed to open file %s (%
l
u)
\n
"
,
wine_dbgstr_w
(
file
),
GetLastError
()
);
goto
done
;
}
low
=
GetFileSize
(
handle
,
&
high
);
...
...
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