Обсуждение: Re: [HACKERS] Open Items

Поиск
Список
Период
Сортировка

Re: [HACKERS] Open Items

От
"Zeugswetter Andreas DAZ SD"
Дата:
> 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