{"id":33153,"date":"2005-11-30T10:54:16","date_gmt":"2005-11-30T10:54:16","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/oldnewthing\/2005\/11\/30\/sometimes-the-fault-is-not-in-our-stars-but-in-ourselves\/"},"modified":"2005-11-30T10:54:16","modified_gmt":"2005-11-30T10:54:16","slug":"sometimes-the-fault-is-not-in-our-stars-but-in-ourselves","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20051130-16\/?p=33153","title":{"rendered":"Sometimes the fault is not in our stars but in ourselves"},"content":{"rendered":"<p><P>\nAn earlier name for\nWindows Server&nbsp;2003 was Microsoft Windows .NET Server,\nand in the final weeks leading up the the product&#8217;s release,\nwe received the following bug from a beta tester:\n<\/P>\n<BLOCKQUOTE CLASS=\"m\">\nWhen I call the <CODE>GetVersionEx<\/CODE> function on\nbuild 3773, the OS name is still reported as\n&#8220;Microsoft Windows .NET Enterprise Server&#8221;.\nI have attached a sample program illustrating the bug.\n<\/BLOCKQUOTE>\n<P>\nI found this kind of confusing, because the <CODE>GetVersionEx<\/CODE>\nfunction doesn&#8217;t return a human-readable product name.\nIntriguged, I took a look at the sample program and it wasn&#8217;t too hard to\nsee where the bug was.\nThe program contained the lines\n<\/P>\n<PRE>\nif ( osvi.dwMajorVersion == 5 &amp;&amp; osvi.dwMinorVersion == 2 )\n   lstrcpyn(szOS, L&#8221;Microsoft Windows .NET&#8221;, MAX_PATH);\n<\/PRE>\n<P>\nIn other words, the program had the incorrect string\nhard-coded into it.\n<\/P>\n<P>\nI reported my findings back to the person who submitted the bug,\nand the response was &#8220;Oops, sorry about that.&#8221;\n<\/P><\/p>\n","protected":false},"excerpt":{"rendered":"<p>An earlier name for Windows Server&nbsp;2003 was Microsoft Windows .NET Server, and in the final weeks leading up the the product&#8217;s release, we received the following bug from a beta tester: When I call the GetVersionEx function on build 3773, the OS name is still reported as &#8220;Microsoft Windows .NET Enterprise Server&#8221;. I have attached [&hellip;]<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[26],"class_list":["post-33153","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-other"],"acf":[],"blog_post_summary":"<p>An earlier name for Windows Server&nbsp;2003 was Microsoft Windows .NET Server, and in the final weeks leading up the the product&#8217;s release, we received the following bug from a beta tester: When I call the GetVersionEx function on build 3773, the OS name is still reported as &#8220;Microsoft Windows .NET Enterprise Server&#8221;. I have attached [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/33153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=33153"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/33153\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=33153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=33153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=33153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}