Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: installer/src/installer-lib/database.h

Issue 5281597276291072: Issue #1187 - Do not use MsiViewClose to close view handles (Closed)
Patch Set: Created Jan. 7, 2015, 10:23 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: installer/src/installer-lib/database.h
===================================================================
--- a/installer/src/installer-lib/database.h
+++ b/installer/src/installer-lib/database.h
@@ -140,23 +140,7 @@
*/
class View
{
- /**
- * Policy class to close a view handle.
- * View handles don't get closed with the generic close function for other MSI handles.
- */
- template< class T >
- struct View_Destruction
- {
- /**
- * \sa MSDN [MsiViewClose function](http://msdn.microsoft.com/en-us/library/aa370510%28v=vs.85%29.aspx)
- */
- inline static void close( T handle )
- {
- ::MsiViewClose( handle ) ;
- }
- } ;
-
- typedef handle< MSIHANDLE, Disallow_Null, View_Destruction > handle_type ;
+ typedef handle< MSIHANDLE, Disallow_Null, MSI_Generic_Destruction > handle_type ;
/**
* Handle for the MSI view object
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld