Skip to content

Commit

Permalink
bug: wrong ref in Wow64RevertWow64FsRedirection
Browse files Browse the repository at this point in the history
  • Loading branch information
wesinator committed Feb 26, 2024
1 parent c1f5f7c commit 1a2562c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lfn.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ WFFindFirst(
Wow64RevertWow64FsRedirection_ wow64revertwow64fsredir;
wow64revertwow64fsredir = (Wow64RevertWow64FsRedirection_)GetProcAddress(hDll, "Wow64RevertWow64FsRedirection");
if (wow64revertwow64fsredir != NULL) {
wow64revertwow64fsredir(&oldValue);
wow64revertwow64fsredir(oldValue);
}

//
Expand Down Expand Up @@ -177,7 +177,7 @@ WFFindNext(LPLFNDTA lpFind)
}

if (wow64revertwow64fsredir != NULL) {
wow64revertwow64fsredir(&oldValue);
wow64revertwow64fsredir(oldValue);
}

lpFind->err = 0;
Expand All @@ -187,7 +187,7 @@ WFFindNext(LPLFNDTA lpFind)
lpFind->err = GetLastError();

if (wow64revertwow64fsredir != NULL) {
wow64revertwow64fsredir(&oldValue);
wow64revertwow64fsredir(oldValue);
}
return(FALSE);
}
Expand Down

0 comments on commit 1a2562c

Please sign in to comment.