- match hdata.content with
- | TopWinReg (src, rootkey, remotefile, cachefile) ->
- (try
- (* Open the hive and save the hive handle in the row hdata. *)
- let flags = if verbose () then [ Hivex.OPEN_VERBOSE ] else [] in
- let h = Hivex.open_file cachefile flags in
- hdata.hiveh <- Some h;
-
- (* Continue as if expanding any other hive node. *)
- let root = Hivex.root h in
- expand_hive_node t row root
- with
- Hivex.Error _ as exn -> when_downloaded_registry_fail t path exn
- )
- | _ -> assert false
+ let h = Option.get hdata.hiveh in
+
+ (* Continue as if expanding any other hive node. *)
+ let root = Hivex.root h in
+ expand_hive_node t row root