Opened 9 years ago
Closed 9 years ago
#12 closed defect (fixed)
Error/Warning dialogs broken on Windows
| Reported by: | Mike Pavone | Owned by: | Mike Pavone | 
|---|---|---|---|
| Priority: | major | Milestone: | 0.5.0 | 
| Component: | user interface | Version: | 0.5.0-pre | 
| Keywords: | Cc: | 
Description
It seems either the change in toolchain from old mingw running under Wine to a mingw64 cross compiler or a change in SDL version broke the error and warning dialogs. Instead of displaying the desired text garbage is shown instead
  Note:
 See   TracTickets
 for help on using tickets.
    
It seems vsnprintf is returning -1 on Windows when the buffer it is given is too small. I've added some code to detect this and use a simple heuristic for the new size instead.