Commit 1f96b882 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

msi: Fix the Create/RemoveFolders actions to actually create and remove empty folders.

parent 24ce163a
...@@ -1102,16 +1102,14 @@ static UINT ITERATE_CreateFolders(MSIRECORD *row, LPVOID param) ...@@ -1102,16 +1102,14 @@ static UINT ITERATE_CreateFolders(MSIRECORD *row, LPVOID param)
static UINT ACTION_CreateFolders(MSIPACKAGE *package) static UINT ACTION_CreateFolders(MSIPACKAGE *package)
{ {
static const WCHAR ExecSeqQuery[] = static const WCHAR query[] =
{'S','E','L','E','C','T',' ', {'S','E','L','E','C','T',' ','*',' ','F','R','O','M',' ',
'`','D','i','r','e','c','t','o','r','y','_','`', '`','C','r','e','a','t','e','F','o','l','d','e','r','`',0};
' ','F','R','O','M',' ',
'`','C','r','e','a','t','e','F','o','l','d','e','r','`',0 };
UINT rc; UINT rc;
MSIQUERY *view; MSIQUERY *view;
/* create all the empty folders specified in the CreateFolder table */ /* create all the empty folders specified in the CreateFolder table */
rc = MSI_DatabaseOpenViewW(package->db, ExecSeqQuery, &view ); rc = MSI_DatabaseOpenViewW(package->db, query, &view );
if (rc != ERROR_SUCCESS) if (rc != ERROR_SUCCESS)
return ERROR_SUCCESS; return ERROR_SUCCESS;
...@@ -1183,8 +1181,8 @@ static UINT ITERATE_RemoveFolders( MSIRECORD *row, LPVOID param ) ...@@ -1183,8 +1181,8 @@ static UINT ITERATE_RemoveFolders( MSIRECORD *row, LPVOID param )
static UINT ACTION_RemoveFolders( MSIPACKAGE *package ) static UINT ACTION_RemoveFolders( MSIPACKAGE *package )
{ {
static const WCHAR query[] = static const WCHAR query[] =
{'S','E','L','E','C','T',' ', '`','D','i','r','e','c','t','o','r','y','_','`', {'S','E','L','E','C','T',' ','*',' ','F','R','O','M',' ',
' ','F','R','O','M',' ', '`','C','r','e','a','t','e','F','o','l','d','e','r','`',0}; '`','C','r','e','a','t','e','F','o','l','d','e','r','`',0};
MSIQUERY *view; MSIQUERY *view;
UINT rc; UINT rc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment