[PATCH v3 2/4] ntdll: Calculate buffer sizes from registry structs correctly.