Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
schmelter-sap committed Feb 21, 2024
1 parent 06fc68a commit 0d21afb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,8 @@ static void memoryBarrier() {

static jboolean deleteFile(char const* name) {
#if defined(_WIN32)
if (!DeleteFile(name)) {
return GetLastError() == ERROR_FILE_NOT_FOUND ? JNI_TRUE : JNI_FALSE;
if ((!DeleteFile(name)) && (GetLastError() != ERROR_FILE_NOT_FOUND)) {
return JNI_FALSE;
}

return JNI_TRUE;
Expand Down

0 comments on commit 0d21afb

Please sign in to comment.