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 6bb4a0e commit 3f602bc
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 @@ -2028,7 +2028,7 @@ namespace kernel32 {
void *WIN_FUNC FlsGetValue(unsigned int dwFlsIndex) {
// DEBUG_LOG("FlsGetValue(%u)", dwFlsIndex);
void *result = nullptr;
if (dwFlsIndex >= 0 && dwFlsIndex < MAX_TLS_VALUES && flsValuesUsed[dwFlsIndex]) {
if (dwFlsIndex >= 0 && dwFlsIndex < MAX_FLS_VALUES && flsValuesUsed[dwFlsIndex]) {
result = flsValues[dwFlsIndex];
// See https://learn.microsoft.com/en-us/windows/win32/api/fibersapi/nf-fibersapi-flsgetvalue
wibo::lastError = ERROR_SUCCESS;
Expand Down

0 comments on commit 3f602bc

Please sign in to comment.