mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 15:02:59 +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()
|
BOOLEAN LoadFMIFSEntryPoints()
|
||||||
{
|
{
|
||||||
HMODULE hFmifs = LoadLibrary( _T("fmifs.dll") );
|
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;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !((void *) GetProcAddress( hFmifs,
|
if( !((void *) GetProcAddress( hFmifs,
|
||||||
"EnableVolumeCompression" )) ) {
|
"EnableVolumeCompression" )) ) {
|
||||||
|
FreeLibrary(hFmifs);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( !((void *) GetProcAddress( hFmifs,
|
if( !((void *) GetProcAddress( hFmifs,
|
||||||
"QueryAvailableFileSystemFormat" )) ) {
|
"QueryAvailableFileSystemFormat" )) ) {
|
||||||
|
FreeLibrary(hFmifs);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue