Re: kernel32: Skip the screen buffer tests if codepage 866 is notavailable
"James Hawkins" <jhawkins(a)codeweavers.com> wrote:
+ res = RegOpenKeyA(HKEY_LOCAL_MACHINE, + "System\\CurrentControlSet\\Control\\Nls\\CodePage", &hkey); + if (res == ERROR_SUCCESS) + { + len = 20; + res = RegQueryValueExA(HKEY_LOCAL_MACHINE, "866", NULL, + NULL, (LPBYTE)str_buf, &len); + }
Could IsValidCodePage() be used instead? -- Dmitry.
On Sun, Apr 20, 2008 at 1:10 AM, Dmitry Timoshkov <dmitry(a)codeweavers.com> wrote:
"James Hawkins" <jhawkins(a)codeweavers.com> wrote:
+ res = RegOpenKeyA(HKEY_LOCAL_MACHINE, + "System\\CurrentControlSet\\Control\\Nls\\CodePage", &hkey); + if (res == ERROR_SUCCESS) + { + len = 20; + res = RegQueryValueExA(HKEY_LOCAL_MACHINE, "866", NULL, + NULL, (LPBYTE)str_buf, &len); + }
Could IsValidCodePage() be used instead?
Indeed it could. Thanks for the tip. -- James Hawkins
participants (2)
-
Dmitry Timoshkov -
James Hawkins