mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user