Re: notepad: Fix the wrong '&' operator use.

2007-04-05 Thread Byeong-Sik Jeon
Felix Nawothnig wrote: > Byeong-Sik Jeon wrote: > > FormatMessage( > > FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, > > NULL, error, 0, > > -(LPTSTR) &lpMsgBuf, 0, NULL); > > +lpMsgBuf, 0, NULL); > > This patch is wrong. Wh

Re: notepad: Fix the wrong '&' operator use.

2007-04-05 Thread Felix Nawothnig
Byeong-Sik Jeon wrote: FormatMessage( FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, error, 0, -(LPTSTR) &lpMsgBuf, 0, NULL); +lpMsgBuf, 0, NULL); This patch is wrong. When FORMAT_MESSAGE_ALLOCATE_BUFFER is used For