Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
bde25b2c
Commit
bde25b2c
authored
Dec 23, 2011
by
Hans Leidekker
Committed by
Alexandre Julliard
Dec 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Use a common function to validate a product ID.
parent
ad4f747f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
16 deletions
+8
-16
action.c
dlls/msi/action.c
+6
-2
events.c
dlls/msi/events.c
+1
-14
msipriv.h
dlls/msi/msipriv.h
+1
-0
No files found.
dlls/msi/action.c
View file @
bde25b2c
...
@@ -6871,7 +6871,7 @@ static UINT ACTION_RemoveEnvironmentStrings( MSIPACKAGE *package )
...
@@ -6871,7 +6871,7 @@ static UINT ACTION_RemoveEnvironmentStrings( MSIPACKAGE *package )
return
rc
;
return
rc
;
}
}
static
UINT
ACTION_ValidateProductID
(
MSIPACKAGE
*
package
)
UINT
msi_validate_product_id
(
MSIPACKAGE
*
package
)
{
{
LPWSTR
key
,
template
,
id
;
LPWSTR
key
,
template
,
id
;
UINT
r
=
ERROR_SUCCESS
;
UINT
r
=
ERROR_SUCCESS
;
...
@@ -6884,7 +6884,6 @@ static UINT ACTION_ValidateProductID( MSIPACKAGE *package )
...
@@ -6884,7 +6884,6 @@ static UINT ACTION_ValidateProductID( MSIPACKAGE *package )
}
}
template
=
msi_dup_property
(
package
->
db
,
szPIDTemplate
);
template
=
msi_dup_property
(
package
->
db
,
szPIDTemplate
);
key
=
msi_dup_property
(
package
->
db
,
szPIDKEY
);
key
=
msi_dup_property
(
package
->
db
,
szPIDKEY
);
if
(
key
&&
template
)
if
(
key
&&
template
)
{
{
FIXME
(
"partial stub: template %s key %s
\n
"
,
debugstr_w
(
template
),
debugstr_w
(
key
)
);
FIXME
(
"partial stub: template %s key %s
\n
"
,
debugstr_w
(
template
),
debugstr_w
(
key
)
);
...
@@ -6895,6 +6894,11 @@ static UINT ACTION_ValidateProductID( MSIPACKAGE *package )
...
@@ -6895,6 +6894,11 @@ static UINT ACTION_ValidateProductID( MSIPACKAGE *package )
return
r
;
return
r
;
}
}
static
UINT
ACTION_ValidateProductID
(
MSIPACKAGE
*
package
)
{
return
msi_validate_product_id
(
package
);
}
static
UINT
ACTION_ScheduleReboot
(
MSIPACKAGE
*
package
)
static
UINT
ACTION_ScheduleReboot
(
MSIPACKAGE
*
package
)
{
{
TRACE
(
"
\n
"
);
TRACE
(
"
\n
"
);
...
...
dlls/msi/events.c
View file @
bde25b2c
...
@@ -389,20 +389,7 @@ static UINT ControlEvent_Reinstall( MSIPACKAGE *package, LPCWSTR argument,
...
@@ -389,20 +389,7 @@ static UINT ControlEvent_Reinstall( MSIPACKAGE *package, LPCWSTR argument,
static
UINT
ControlEvent_ValidateProductID
(
MSIPACKAGE
*
package
,
LPCWSTR
argument
,
static
UINT
ControlEvent_ValidateProductID
(
MSIPACKAGE
*
package
,
LPCWSTR
argument
,
msi_dialog
*
dialog
)
msi_dialog
*
dialog
)
{
{
LPWSTR
key
,
template
;
return
msi_validate_product_id
(
package
);
UINT
ret
=
ERROR_SUCCESS
;
template
=
msi_dup_property
(
package
->
db
,
szPIDTemplate
);
key
=
msi_dup_property
(
package
->
db
,
szPIDKEY
);
if
(
key
&&
template
)
{
FIXME
(
"partial stub: template %s key %s
\n
"
,
debugstr_w
(
template
),
debugstr_w
(
key
)
);
ret
=
msi_set_property
(
package
->
db
,
szProductID
,
key
);
}
msi_free
(
template
);
msi_free
(
key
);
return
ret
;
}
}
static
const
WCHAR
end_dialogW
[]
=
{
'E'
,
'n'
,
'd'
,
'D'
,
'i'
,
'a'
,
'l'
,
'o'
,
'g'
,
0
};
static
const
WCHAR
end_dialogW
[]
=
{
'E'
,
'n'
,
'd'
,
'D'
,
'i'
,
'a'
,
'l'
,
'o'
,
'g'
,
0
};
...
...
dlls/msi/msipriv.h
View file @
bde25b2c
...
@@ -786,6 +786,7 @@ extern INSTALLSTATE msi_get_component_action( MSIPACKAGE *package, MSICOMPONENT
...
@@ -786,6 +786,7 @@ extern INSTALLSTATE msi_get_component_action( MSIPACKAGE *package, MSICOMPONENT
extern
INSTALLSTATE
msi_get_feature_action
(
MSIPACKAGE
*
package
,
MSIFEATURE
*
feature
)
DECLSPEC_HIDDEN
;
extern
INSTALLSTATE
msi_get_feature_action
(
MSIPACKAGE
*
package
,
MSIFEATURE
*
feature
)
DECLSPEC_HIDDEN
;
extern
UINT
msi_load_all_components
(
MSIPACKAGE
*
package
)
DECLSPEC_HIDDEN
;
extern
UINT
msi_load_all_components
(
MSIPACKAGE
*
package
)
DECLSPEC_HIDDEN
;
extern
UINT
msi_load_all_features
(
MSIPACKAGE
*
package
)
DECLSPEC_HIDDEN
;
extern
UINT
msi_load_all_features
(
MSIPACKAGE
*
package
)
DECLSPEC_HIDDEN
;
extern
UINT
msi_validate_product_id
(
MSIPACKAGE
*
package
)
DECLSPEC_HIDDEN
;
/* record internals */
/* record internals */
extern
void
MSI_CloseRecord
(
MSIOBJECTHDR
*
)
DECLSPEC_HIDDEN
;
extern
void
MSI_CloseRecord
(
MSIOBJECTHDR
*
)
DECLSPEC_HIDDEN
;
...
...
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