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
9e85ec3b
Commit
9e85ec3b
authored
Apr 03, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Apr 04, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Remove tentative declaration of static array with no size specifier.
parent
90265ac5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
52 deletions
+51
-52
action.c
dlls/msi/action.c
+51
-52
No files found.
dlls/msi/action.c
View file @
9e85ec3b
...
@@ -47,6 +47,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(msi);
...
@@ -47,6 +47,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(msi);
static
UINT
ACTION_ProcessExecSequence
(
MSIPACKAGE
*
package
,
BOOL
UIran
);
static
UINT
ACTION_ProcessExecSequence
(
MSIPACKAGE
*
package
,
BOOL
UIran
);
static
UINT
ACTION_ProcessUISequence
(
MSIPACKAGE
*
package
);
static
UINT
ACTION_ProcessUISequence
(
MSIPACKAGE
*
package
);
static
UINT
ACTION_PerformActionSequence
(
MSIPACKAGE
*
package
,
UINT
seq
,
BOOL
UI
);
static
UINT
ACTION_PerformActionSequence
(
MSIPACKAGE
*
package
,
UINT
seq
,
BOOL
UI
);
static
BOOL
ACTION_HandleStandardAction
(
MSIPACKAGE
*
package
,
LPCWSTR
action
,
UINT
*
rc
,
BOOL
force
);
/*
/*
* consts and values used
* consts and values used
...
@@ -233,8 +234,6 @@ struct _actions {
...
@@ -233,8 +234,6 @@ struct _actions {
STANDARDACTIONHANDLER
handler
;
STANDARDACTIONHANDLER
handler
;
};
};
static
const
struct
_actions
StandardActions
[];
/********************************************************
/********************************************************
* helper functions
* helper functions
...
@@ -965,56 +964,6 @@ static UINT ACTION_ProcessUISequence(MSIPACKAGE *package)
...
@@ -965,56 +964,6 @@ static UINT ACTION_ProcessUISequence(MSIPACKAGE *package)
/********************************************************
/********************************************************
* ACTION helper functions and functions that perform the actions
* ACTION helper functions and functions that perform the actions
*******************************************************/
*******************************************************/
static
BOOL
ACTION_HandleStandardAction
(
MSIPACKAGE
*
package
,
LPCWSTR
action
,
UINT
*
rc
,
BOOL
force
)
{
BOOL
ret
=
FALSE
;
BOOL
run
=
force
;
int
i
;
if
(
!
run
&&
!
package
->
script
->
CurrentlyScripting
)
run
=
TRUE
;
if
(
!
run
)
{
if
(
strcmpW
(
action
,
szInstallFinalize
)
==
0
||
strcmpW
(
action
,
szInstallExecute
)
==
0
||
strcmpW
(
action
,
szInstallExecuteAgain
)
==
0
)
run
=
TRUE
;
}
i
=
0
;
while
(
StandardActions
[
i
].
action
!=
NULL
)
{
if
(
strcmpW
(
StandardActions
[
i
].
action
,
action
)
==
0
)
{
if
(
!
run
)
{
ui_actioninfo
(
package
,
action
,
TRUE
,
0
);
*
rc
=
schedule_action
(
package
,
INSTALL_SCRIPT
,
action
);
ui_actioninfo
(
package
,
action
,
FALSE
,
*
rc
);
}
else
{
ui_actionstart
(
package
,
action
);
if
(
StandardActions
[
i
].
handler
)
{
*
rc
=
StandardActions
[
i
].
handler
(
package
);
}
else
{
FIXME
(
"unhandled standard action %s
\n
"
,
debugstr_w
(
action
));
*
rc
=
ERROR_SUCCESS
;
}
}
ret
=
TRUE
;
break
;
}
i
++
;
}
return
ret
;
}
static
BOOL
ACTION_HandleCustomAction
(
MSIPACKAGE
*
package
,
LPCWSTR
action
,
static
BOOL
ACTION_HandleCustomAction
(
MSIPACKAGE
*
package
,
LPCWSTR
action
,
UINT
*
rc
,
UINT
script
,
BOOL
force
)
UINT
*
rc
,
UINT
script
,
BOOL
force
)
{
{
...
@@ -5852,3 +5801,53 @@ static const struct _actions StandardActions[] = {
...
@@ -5852,3 +5801,53 @@ static const struct _actions StandardActions[] = {
{
szWriteRegistryValues
,
ACTION_WriteRegistryValues
},
{
szWriteRegistryValues
,
ACTION_WriteRegistryValues
},
{
NULL
,
NULL
},
{
NULL
,
NULL
},
};
};
static
BOOL
ACTION_HandleStandardAction
(
MSIPACKAGE
*
package
,
LPCWSTR
action
,
UINT
*
rc
,
BOOL
force
)
{
BOOL
ret
=
FALSE
;
BOOL
run
=
force
;
int
i
;
if
(
!
run
&&
!
package
->
script
->
CurrentlyScripting
)
run
=
TRUE
;
if
(
!
run
)
{
if
(
strcmpW
(
action
,
szInstallFinalize
)
==
0
||
strcmpW
(
action
,
szInstallExecute
)
==
0
||
strcmpW
(
action
,
szInstallExecuteAgain
)
==
0
)
run
=
TRUE
;
}
i
=
0
;
while
(
StandardActions
[
i
].
action
!=
NULL
)
{
if
(
strcmpW
(
StandardActions
[
i
].
action
,
action
)
==
0
)
{
if
(
!
run
)
{
ui_actioninfo
(
package
,
action
,
TRUE
,
0
);
*
rc
=
schedule_action
(
package
,
INSTALL_SCRIPT
,
action
);
ui_actioninfo
(
package
,
action
,
FALSE
,
*
rc
);
}
else
{
ui_actionstart
(
package
,
action
);
if
(
StandardActions
[
i
].
handler
)
{
*
rc
=
StandardActions
[
i
].
handler
(
package
);
}
else
{
FIXME
(
"unhandled standard action %s
\n
"
,
debugstr_w
(
action
));
*
rc
=
ERROR_SUCCESS
;
}
}
ret
=
TRUE
;
break
;
}
i
++
;
}
return
ret
;
}
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