[PATCH] Uninstaller: Use a define'd length instead of a magic
number
James Hawkins
truiken at gmail.com
Thu May 10 10:31:00 CDT 2007
On 5/10/07, Tom Spear <speeddymon at gmail.com> wrote:
> MAX_STRING_LEN is defined in resource.h at 255. According to
> http://msdn2.microsoft.com/en-us/library/ms724872.aspx the limit for
> the length of a subkey name is 255.
>
> >> Please let me know if I should make a new define instead of using
> MAX_STRING_LEN.
>
Yes, you should make a new define. MAX_STRING_LEN is the maximum
length for a string from the resource file, which is totally unrelated
to the limit for the length of a subkey name.
--
James Hawkins
More information about the wine-devel
mailing list