Re: [HACKERS] Open Items

Поиск
Список
Период
Сортировка
От Zeugswetter Andreas DAZ SD
Тема Re: [HACKERS] Open Items
Дата
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA40184D20F@m0114.s-mxs.net
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: "Magnus Hagander"
Дата:
Сообщение: Re: [HACKERS] Open Items
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: [HACKERS] Open Items