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
081bd13f
Commit
081bd13f
authored
Feb 04, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msiexec: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
34b1c21d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
Makefile.in
programs/msiexec/Makefile.in
+0
-1
msiexec.c
programs/msiexec/msiexec.c
+6
-6
service.c
programs/msiexec/service.c
+2
-2
No files found.
programs/msiexec/Makefile.in
View file @
081bd13f
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
msiexec.exe
IMPORTS
=
msi ole32 advapi32 user32 comctl32
...
...
programs/msiexec/msiexec.c
View file @
081bd13f
...
...
@@ -61,13 +61,13 @@ static void ShowUsage(int ExitCode)
*
filename
=
0
;
res
=
GetModuleFileNameW
(
hmsi
,
filename
,
ARRAY_SIZE
(
filename
));
if
(
!
res
)
WINE_ERR
(
"GetModuleFileName failed: %d
\n
"
,
GetLastError
());
WINE_ERR
(
"GetModuleFileName failed: %
l
d
\n
"
,
GetLastError
());
len
=
ARRAY_SIZE
(
msiexec_version
);
*
msiexec_version
=
0
;
res
=
MsiGetFileVersionW
(
filename
,
msiexec_version
,
&
len
,
NULL
,
NULL
);
if
(
res
)
WINE_ERR
(
"MsiGetFileVersion failed with %d
\n
"
,
res
);
WINE_ERR
(
"MsiGetFileVersion failed with %
l
d
\n
"
,
res
);
/* Return the length of the resource.
No typo: The LPWSTR parameter must be a LPWSTR * for this mode */
...
...
@@ -413,7 +413,7 @@ static int custom_action_server(const WCHAR *arg)
pipe
=
CreateFileW
(
buffer
,
GENERIC_READ
|
GENERIC_WRITE
,
0
,
NULL
,
OPEN_EXISTING
,
0
,
NULL
);
if
(
pipe
==
INVALID_HANDLE_VALUE
)
{
ERR
(
"Failed to create custom action server pipe: %u
\n
"
,
GetLastError
());
ERR
(
"Failed to create custom action server pipe: %
l
u
\n
"
,
GetLastError
());
return
GetLastError
();
}
...
...
@@ -438,12 +438,12 @@ static int custom_action_server(const WCHAR *arg)
thread64
=
(
DWORD_PTR
)
thread
;
if
(
!
WriteFile
(
pipe
,
&
thread64
,
sizeof
(
thread64
),
&
size
,
NULL
)
||
size
!=
sizeof
(
thread64
))
{
ERR
(
"Failed to write to custom action server pipe: %u
\n
"
,
GetLastError
());
ERR
(
"Failed to write to custom action server pipe: %
l
u
\n
"
,
GetLastError
());
CoUninitialize
();
return
GetLastError
();
}
}
ERR
(
"Failed to read from custom action server pipe: %u
\n
"
,
GetLastError
());
ERR
(
"Failed to read from custom action server pipe: %
l
u
\n
"
,
GetLastError
());
CoUninitialize
();
return
GetLastError
();
}
...
...
@@ -948,7 +948,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
LogFileName
=
argvW
[
i
];
if
(
MsiEnableLogW
(
LogMode
,
LogFileName
,
LogAttributes
)
!=
ERROR_SUCCESS
)
{
fprintf
(
stderr
,
"Logging in %s (0x%08
x, %
u) failed
\n
"
,
fprintf
(
stderr
,
"Logging in %s (0x%08
lx, %l
u) failed
\n
"
,
wine_dbgstr_w
(
LogFileName
),
LogMode
,
LogAttributes
);
ExitProcess
(
1
);
}
...
...
programs/msiexec/service.c
View file @
081bd13f
...
...
@@ -83,7 +83,7 @@ static BOOL UpdateSCMStatus(DWORD dwCurrentState, DWORD dwWin32ExitCode,
static
void
WINAPI
ServiceCtrlHandler
(
DWORD
code
)
{
WINE_TRACE
(
"%d
\n
"
,
code
);
WINE_TRACE
(
"%
l
d
\n
"
,
code
);
switch
(
code
)
{
...
...
@@ -93,7 +93,7 @@ static void WINAPI ServiceCtrlHandler(DWORD code)
KillService
();
break
;
default:
fprintf
(
stderr
,
"Unhandled service control code: %d
\n
"
,
code
);
fprintf
(
stderr
,
"Unhandled service control code: %
l
d
\n
"
,
code
);
UpdateSCMStatus
(
SERVICE_RUNNING
,
NO_ERROR
,
0
);
break
;
}
...
...
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