Skip to content

Commit

Permalink
Fixed theoretical handle leak with unsupported reg value types.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexikos committed Jan 5, 2012
1 parent 89e31cf commit b780a4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/script_registry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ ResultType Line::RegRead(HKEY aRootKey, LPTSTR aRegSubkey, LPTSTR aValueName)
return FAIL;
}
default:
RegCloseKey(hRegKey);
result = ERROR_UNSUPPORTED_TYPE; // Indicate the error.
break;
}
Expand Down

0 comments on commit b780a4f

Please sign in to comment.