Re: [HACKERS] Open Items - Mailing list pgsql-patches

From Zeugswetter Andreas DAZ SD
Subject Re: [HACKERS] Open Items
Date
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA40184D20F@m0114.s-mxs.net
Whole thread Raw
List pgsql-patches
> Just one question about the actual implementation of the patch - why are
> you setting the OS version *before* you call GetVersionEx()?

The Microsoft Example did a memset on the structure before calling void GetVersionEx().
Setting it to a version that needs the Global\ is only a safeguard against a failing
call. I guess the call cannot fail, and thus setting it before is not really needed.

> It'll just get overwritten...

Yes, if the void call does not fail to work.

Andreas

pgsql-patches by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Re: [HACKERS] Open Items
Next
From: "Magnus Hagander"
Date:
Subject: Re: [HACKERS] Open Items