Regedt32.exe Truncates REG_MULTI_SZ Entries Longer Than 1,024 Characters (269629)



The information in this article applies to:

  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Professional

This article was previously published under Q269629

SYMPTOMS

Regedt32.exe splits a string that is longer than 1,024 characters by inserting a null character within the string after 1,024 characters. If you open a REG_MULTI_SZ value that has a string that is longer than 1,024 characters and click OK to save it, the string is split after 1,024 characters and a null character is inserted.

CAUSE

When Regedt32.exe reads from the dialog box, strings that are longer than 1,024 characters are truncated because EM_GETLINECOUNT and EM_LINEINDEX are being used, which return only the length of the first line. Strings longer than 1,024 bytes are treated as multiple-line strings.

RESOLUTION

To resolve this problem, obtain the latest service pack for Windows 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

260910 How to Obtain the Latest Windows 2000 Service Pack

The English version of this fix should have the following file attributes or later:
   Date        Time    Version      Size    File name
   -----------------------------------------------------
   08/09/00    09:26a 5.0.2195.2103 139,536 Regedt32.exe
				

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Windows 2000 Service Pack 2.

MORE INFORMATION

For additional information about how to install Windows 2000 and Windows 2000 hotfixes at the same time, click the article number below to view the article in the Microsoft Knowledge Base:

249149 Installing Microsoft Windows 2000 and Windows 2000 Hotfixes


Modification Type:MinorLast Reviewed:9/23/2005
Keywords:kbHotfixServer kbQFE kbbug kbfix kbWin2000PreSP2Fix KB269629