Skip to content

Commit

Permalink
Update dll/kernel32.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Simon Lindholm <simon.lindholm10@gmail.com>
  • Loading branch information
mkst and simonlindholm authored Oct 17, 2023
1 parent 83efc3e commit 2849a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dll/kernel32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2016,7 +2016,7 @@ namespace kernel32 {

unsigned int WIN_FUNC FlsFree(unsigned int dwFlsIndex) {
DEBUG_LOG("FlsFree(%u)\n", dwFlsIndex);
if (dwFlsIndex >= 0 && dwFlsIndex < MAX_TLS_VALUES && flsValuesUsed[dwFlsIndex]) {
if (dwFlsIndex >= 0 && dwFlsIndex < MAX_FLS_VALUES && flsValuesUsed[dwFlsIndex]) {
flsValuesUsed[dwFlsIndex] = false;
return 1;
} else {
Expand Down

0 comments on commit 2849a33

Please sign in to comment.