[BOOTLIB] Fix 64 bit issues (#433)
[reactos.git] / boot / environ / lib / misc / bootreg.c
index 88b970d..bf66657 100644 (file)
@@ -192,7 +192,7 @@ BiOpenKey(
     PBI_KEY_OBJECT ParentKey, NewKey;
     PBI_KEY_HIVE ParentHive;
     NTSTATUS Status;
-    ULONG NameLength, SubNameLength, NameBytes;
+    SIZE_T NameLength, SubNameLength, NameBytes;
     PWCHAR NameStart, NameBuffer;
     UNICODE_STRING KeyString;
     HCELL_INDEX KeyCell;