> > There is a fixed buffer of 1024 bytes. I have a feeling 
> ythat one has 
> > to be changed to dynamic.
> > 
> You're quite right. The 'InfoBufferSize' denotes 1122 bytes 
> after this call.
> 
> if(!GetTokenInformation(AccessToken,TokenGroups,InfoBuffer,102
> 4,&InfoBufferSize)) 

Ah. 
Your stop-gap fix is to double the size of the buffer.

I'll try to get a patch in for dynamic buffer handling in the next
couple of days as the real fix.

Just to be sure: Bruce, open item please for "Use dynamic buffer for
token buffer in win32 admin check"


//Magnus

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faqs/FAQ.html

Reply via email to