<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2015-03-15 15:55 GMT+08:00 Nikolay Sivov <span dir="ltr"><<a href="mailto:bunglehead@gmail.com" target="_blank">bunglehead@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
+static HRESULT Global_GetLocale(vbdisp_t *This, VARIANT *arg, unsigned args_cnt, VARIANT *res)<br>
+{<br>
+    return return_int(res, GetACP());<br>
+}<br>
</blockquote>
<br>
This looks completely wrong. Docs say it should return locale id (as name suggests), not a codepage value.<br>
</blockquote></div><br></div><div class="gmail_extra">Yeah, I misunderstand that function. But what I concern more is this line:</div><div class="gmail_extra"><br></div><div class="gmail_extra">213 #define DISPID_GLOBAL_GETLOCALE                 207<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">it turns out 207 is not valid.</div></div>