Re: notepad: Fix the wrong '&' operator use.
5 Apr
2007
5 Apr
'07
9:04 p.m.
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 FormatMessage() takes a pointer to a pointer.
5 Apr
5 Apr
9:42 p.m.
New subject: notepad: Fix the wrong '&' operator use.
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. When FORMAT_MESSAGE_ALLOCATE_BUFFER is used FormatMessage() takes a pointer to a pointer.
Oops!!! I'm sorry. I was foolish :-(
6916
Age (days ago)
6916
Last active (days ago)
1 comments
2 participants
participants (2)
-
Byeong-Sik Jeon -
Felix Nawothnig