daemon/inspect_fs_windows.ml: Use {|..|} string literal

This commit is contained in:
Richard W.M. Jones
2025-09-01 13:59:56 +01:00
parent f857f39a2d
commit 32b911a061

View File

@@ -337,7 +337,7 @@ and get_drive_mappings h root data =
let key = Hivex.value_key h value in
let keylen = String.length key in
if keylen >= 14 &&
String.lowercase_ascii (String.sub key 0 12) = "\\dosdevices\\" &&
String.lowercase_ascii (String.sub key 0 12) = {|\dosdevices\|} &&
Char.isalpha key.[12] && key.[13] = ':' then (
let drive_letter = String.sub key 12 1 in