TokenSpace: fix token wraparound
Fix bug that allocating/freeing a lot of BHandler cause token wraparound and overwriting existing assigned tokens. Change-Id: I12527126644bca1793a8475dc487f131e6f83437 Reviewed-on: https://review.haiku-os.org/c/haiku/+/9533 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
@@ -62,7 +62,7 @@ private:
|
||||
typedef std::map<int32, token_info> TokenMap;
|
||||
|
||||
TokenMap fTokenMap;
|
||||
int32 fTokenCount;
|
||||
int32 fNextToken;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user