------- Comment #2 from tromey at gcc dot gnu dot org 2006-06-05 14:23 ------- In this case won't the first failing FormatMessage change the current error, so the next GetLastError will always return the overwritten value? The MSDN docs seem to indicate that if FormatMessage fails, you can use GetLastError to find out why...
Or maybe that is the intent? -- tromey at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2006-06-05 14:23:56 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27797