mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:35:47 +00:00
[FORMAT]
- Check LoadLibrary() return - In case it doesn't match, free library CID #716330 svn path=/trunk/; revision=62649
This commit is contained in:
parent
75555432ba
commit
6e7450938f
1 changed files with 7 additions and 3 deletions
|
@ -238,20 +238,24 @@ FormatExCallback (
|
|||
BOOLEAN LoadFMIFSEntryPoints()
|
||||
{
|
||||
HMODULE hFmifs = LoadLibrary( _T("fmifs.dll") );
|
||||
if( !(void*) GetProcAddress( hFmifs, "FormatEx" ) ) {
|
||||
if (hFmifs == NULL) {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if( !(void*) GetProcAddress( hFmifs, "FormatEx" ) ) {
|
||||
FreeLibrary(hFmifs);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if( !((void *) GetProcAddress( hFmifs,
|
||||
"EnableVolumeCompression" )) ) {
|
||||
|
||||
FreeLibrary(hFmifs);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if( !((void *) GetProcAddress( hFmifs,
|
||||
"QueryAvailableFileSystemFormat" )) ) {
|
||||
|
||||
FreeLibrary(hFmifs);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue