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
f7aa88fe
Commit
f7aa88fe
authored
Jul 20, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Store the patch state in the registry.
parent
03cddf9d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
action.c
dlls/msi/action.c
+5
-0
msipriv.h
dlls/msi/msipriv.h
+1
-0
No files found.
dlls/msi/action.c
View file @
f7aa88fe
...
@@ -567,6 +567,7 @@ UINT msi_apply_patch_db( MSIPACKAGE *package, MSIDATABASE *patch_db, MSIPATCHINF
...
@@ -567,6 +567,7 @@ UINT msi_apply_patch_db( MSIPACKAGE *package, MSIDATABASE *patch_db, MSIPATCHINF
*/
*/
append_storage_to_db
(
package
->
db
,
patch_db
->
storage
);
append_storage_to_db
(
package
->
db
,
patch_db
->
storage
);
patch
->
state
=
MSIPATCHSTATE_APPLIED
;
list_add_tail
(
&
package
->
patches
,
&
patch
->
entry
);
list_add_tail
(
&
package
->
patches
,
&
patch
->
entry
);
return
ERROR_SUCCESS
;
return
ERROR_SUCCESS
;
}
}
...
@@ -3879,6 +3880,10 @@ static UINT msi_publish_patches( MSIPACKAGE *package, HKEY prodkey )
...
@@ -3879,6 +3880,10 @@ static UINT msi_publish_patches( MSIPACKAGE *package, HKEY prodkey )
goto
done
;
goto
done
;
res
=
RegCreateKeyExW
(
product_patches_key
,
patch_squashed
,
0
,
NULL
,
0
,
KEY_ALL_ACCESS
,
NULL
,
&
patch_key
,
NULL
);
res
=
RegCreateKeyExW
(
product_patches_key
,
patch_squashed
,
0
,
NULL
,
0
,
KEY_ALL_ACCESS
,
NULL
,
&
patch_key
,
NULL
);
if
(
res
!=
ERROR_SUCCESS
)
goto
done
;
res
=
RegSetValueExW
(
patch_key
,
szState
,
0
,
REG_DWORD
,
(
const
BYTE
*
)
&
patch
->
state
,
sizeof
(
patch
->
state
)
);
RegCloseKey
(
patch_key
);
RegCloseKey
(
patch_key
);
if
(
res
!=
ERROR_SUCCESS
)
if
(
res
!=
ERROR_SUCCESS
)
goto
done
;
goto
done
;
...
...
dlls/msi/msipriv.h
View file @
f7aa88fe
...
@@ -153,6 +153,7 @@ typedef struct tagMSIPATCHINFO
...
@@ -153,6 +153,7 @@ typedef struct tagMSIPATCHINFO
LPWSTR
patchcode
;
LPWSTR
patchcode
;
LPWSTR
transforms
;
LPWSTR
transforms
;
LPWSTR
localfile
;
LPWSTR
localfile
;
MSIPATCHSTATE
state
;
}
MSIPATCHINFO
;
}
MSIPATCHINFO
;
typedef
struct
_column_info
typedef
struct
_column_info
...
...
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