Microsoft KB Archive/131281

{|
 * width="100%"|

PRB: Calling LoadMenuIndirect with Invalid Data Hangs System

 * }

Q131281

-

The information in this article applies to:


 * Microsoft Win32 Software Development Kit (SDK), on platform(s):
 * Microsoft Windows 95

-

SYMPTOMS
Under Windows 95 if you call LoadMenuIndirect with invalid data, the system hangs (stops responding).

CAUSE
Invalid data anywhere in the array of MENUITEMTEMPLATE structures passed to the LoadMenuIndirect function may cause this problem. An example of this might be an extra NULL byte after a MENUITEMTEMPLATE structure.

Under Windows NT version 3.5, passing the same invalid data in the MENUITEMTEMPLATE structure causes LoadMenuIndirect to return NULL, with GetLastError reporting an ERROR_INVALID_DATA value.

Additional query words: freeze lock up Menus

Keywords : kbMenu kbGrpDSUser kbOSWin95

Issue type : kbprb

Technology : kbWin32SDKSearch kbAudDeveloper kbSDKSearch kbWin32sSearch