+ FreePool(g_chain);
+
+ return EFI_SUCCESS;
+}
+
+STATIC EFI_STATUS ventoy_hook_start(VOID)
+{
+ /* don't add debug print in this function */
+
+ if (g_fix_windows_1st_cdrom_issue)
+ {
+ ventoy_hook_1st_cdrom_start();
+ }
+
+ /* let this the last */
+ if (g_hook_keyboard)
+ {
+ ventoy_hook_keyboard_start();
+ }
+
+ return EFI_SUCCESS;
+}
+
+STATIC EFI_STATUS ventoy_hook_stop(VOID)
+{
+ /* don't add debug print in this function */
+
+ if (g_fix_windows_1st_cdrom_issue)
+ {
+ ventoy_hook_1st_cdrom_stop();
+ }
+
+ /* let this the last */
+ if (g_hook_keyboard)
+ {
+ ventoy_hook_keyboard_stop();
+ }
+