------- Comment #3 from r_ovidius at eml dot cc  2006-06-05 14:46 -------
The intent was to stop my app from segfaulting. :) I'm not sure what you are
getting at...

FormatMessage fails when looking up nErrorCode, since Win98 doesn't have error
messages in FORMAT_MESSAGE_FROM_SYSTEM for network messages.

The second call just does the FormatMessage on GetLastError() which is no
longer nErrorCode, but will be 317 "Message not found" due to the previous
failed call, which will be a valid MESSAGE_FROM_SYSTEM.  You could try a bunch
of other FormatMessage calls on nErrorCode with MESSAGE_FROM_HANDLE instead of
FROM_SYSTEM and try to use the ModuleHandle of wininet.dll or whatever dll and
see if that works if that is what you mean.  I haven't tried those yet since
I'm still fighting with other gcj problems.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27797

Reply via email to