Actions
Bug #2676
closedDouble unget is not guaranteed to work
Description
WMessageResources::readResourceStream does s.unget twice if the stream doesn't have UTF16 BOM. Since unget is not guaranteed to work more than once, this is a possible bug (depending on implementation and underlying stream type). The simple solution is to s.seekg(0, std::ios::beg); instead, since that is what the code attempts to do anyway.
Updated by Wim Dumon almost 11 years ago
- Status changed from New to Resolved
- Assignee set to Wim Dumon
Updated by Koen Deforche almost 11 years ago
- Status changed from Resolved to Closed
Actions