Re: pg_id.c windows fix

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: pg_id.c windows fix
Дата
Msg-id 20031004224132.F57459@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Re: pg_id.c windows fix  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
On Sun, 5 Oct 2003, Bruce Momjian wrote:

>
> Can you tell me what Win32 compile environment can't handle a sizeof()
> as a function parameter?
>
> !       GetUserName(pw->pw_name, sizeof(pw->pw_name)-1);
>
> Does casting to DWORD help?

> > !       GetUserName(pw->pw_name, &pwname_size);

It looks like the second argument is supposed to be a pointer and probably
returns back the length actually used (if it follows the pattern of other
win32 calls)

It's something like:
BOOL GetUserName(
    LPTSTR lpBuffer,    // address of name buffer
    LPDWORD nSize     // address of size of name buffer
   );

В списке pgsql-patches по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: pg_id.c windows fix
Следующее
От: "Andrew Dunstan"
Дата:
Сообщение: Re: pg_id.c windows fix