@@ -26,7 +26,7 @@ public void extract_cab (Libmsi.Database db, string cab,
26
26
if (cab. has_prefix (" #" )) {
27
27
var name = cab. substring (1 );
28
28
var query = new Libmsi .Query (db, " SELECT `Data` FROM `_Streams` WHERE `Name` = '%s '" . printf (name));
29
- query. execute (null );
29
+ query. execute ();
30
30
var rec = query. fetch ();
31
31
var cabinet = new GCab .Cabinet ();
32
32
cabinet. load (rec. get_stream (1 ));
@@ -39,13 +39,13 @@ public void extract (string filename) throws GLib.Error {
39
39
40
40
var directories = new HashTable<string, Libmsi . Record > (str_hash, str_equal);
41
41
var query = new Libmsi .Query (db, " SELECT * FROM `Directory`" );
42
- query. execute (null );
42
+ query. execute ();
43
43
while ((rec = query. fetch ()) != null )
44
44
directories. insert (rec. get_string (1 ), rec);
45
45
46
46
var components_dir = new HashTable<string, string> (str_hash, str_equal);
47
47
query = new Libmsi .Query (db, " SELECT * FROM `Component`" );
48
- query. execute (null );
48
+ query. execute ();
49
49
while ((rec = query. fetch ()) != null ) {
50
50
var dir_id = rec. get_string (3 );
51
51
var dir_rec = directories. lookup (dir_id);
@@ -72,7 +72,7 @@ public void extract (string filename) throws GLib.Error {
72
72
73
73
var cab_to_name = new HashTable<string, string> (str_hash, str_equal);
74
74
query = new Libmsi .Query (db, " SELECT * FROM `File`" );
75
- query. execute (null );
75
+ query. execute ();
76
76
while ((rec = query. fetch ()) != null ) {
77
77
var dir = components_dir. lookup (rec. get_string (2 ));
78
78
var file = Path . build_filename (dir, get_long_name (rec. get_string (3 )));
@@ -86,7 +86,7 @@ public void extract (string filename) throws GLib.Error {
86
86
87
87
message (" FIXME: gcab doesn't support extraction yet!" );
88
88
query = new Libmsi .Query (db, " SELECT * FROM `Media`" );
89
- query. execute (null );
89
+ query. execute ();
90
90
while ((rec = query. fetch ()) != null ) {
91
91
var cab = rec. get_string (4 );
92
92
extract_cab (db, cab, cab_to_name);
0 commit comments