--- Begin Message ---
Subject: |
Re: Win32 MUI support for libintl/gettext |
Date: |
Wed, 04 Jul 2007 00:22:49 +0200 |
User-agent: |
Thunderbird 1.5 (Windows/20051201) |
What the hell... just spotted a blatant error:
+BOOL CALLBACK enum_res_lang(HANDLE hModule, LPCTSTR lpszType, LPCTSTR
lpszName, WORD wIDLanguage, LONG lParam)
+{
+ lParam = (LONG_PTR)_nl_langid_name_np(wIDLanguage);
+ return FALSE;
+}
This should be:
+BOOL CALLBACK enum_res_lang(HANDLE hModule, LPCTSTR lpszType, LPCTSTR
lpszName, WORD wIDLanguage, LONG_PTR lParam)
+{
+ *(char **)lParam = _nl_langid_name_np(wIDLanguage);
+ return FALSE;
+}
So this:
+ EnumResourceLanguages(hKernel32, RT_VERSION, MAKEINTRESOURCE(1),
enum_res_lang, (LONG_PTR)&lang_names);
needs to become:
+ EnumResourceLanguages(hKernel32, RT_VERSION, MAKEINTRESOURCE(1),
(ENUMRESLANGPROC)enum_res_lang, (LONG_PTR)&lang_names);
--- End Message ---
--- Begin Message ---
Subject: |
confirm c03120769f9598e6b4d97a4282a2a78c9faead5d |
If you reply to this message, keeping the Subject: header intact,
Mailman will discard the held message. Do this if the message is
spam. If you reply to this message and include an Approved: header
with the list password in it, the message will be approved for posting
to the list. The Approved: header can also appear in the first line
of the body of the reply.
--- End Message ---