From ece369f8f0f0a7ecf881b31adc4e249ce302d499 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 23 Jun 2025 18:04:39 +0900 Subject: [PATCH] Revert "Update MetadataStore.cs" This reverts commit ba3e21fecaa1bc30bdda5565915122d0f7f7c35b. --- WelsonJS.Toolkit/WelsonJS.Launcher/MetadataStore.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/WelsonJS.Toolkit/WelsonJS.Launcher/MetadataStore.cs b/WelsonJS.Toolkit/WelsonJS.Launcher/MetadataStore.cs index 5bec56b..c6547a7 100644 --- a/WelsonJS.Toolkit/WelsonJS.Launcher/MetadataStore.cs +++ b/WelsonJS.Toolkit/WelsonJS.Launcher/MetadataStore.cs @@ -106,16 +106,16 @@ namespace WelsonJS.Launcher } string indexKey = $"+{_primaryKey.Name}\0"; - string keyDescription = indexKey + "\0"; - int keyDescriptionLength = Encoding.ASCII.GetByteCount(keyDescription); // double null-terminated + int keyLength = Encoding.ASCII.GetByteCount(indexKey + "\0"); // double null-terminated + string fullKeyDescription = indexKey + "\0"; Api.JetCreateIndex( _session, tableid, "primary", CreateIndexGrbit.IndexPrimary | CreateIndexGrbit.IndexUnique, - keyDescription, - keyDescriptionLength, + fullKeyDescription, + keyLength, 100 );