[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: mmsystem should be loaded at startup
From:       eric pouech <eric.pouech () wanadoo ! fr>
Date:       2001-11-24 20:10:33
[Download RAW message or body]

Joshua Thielen wrote:
> 
> Note: I'm not sure if I should have called ExitProcess if mmsystem.dll
> can't be loaded 
not needed, if it couldn't be loaded, then no need to free it

> and if I needed to call FreeLibrary. I just took the
> LoadLibrary("user32") as an example.
well, error reporting for 16 bit DLL is a bit different (see below)

> +    if(!(mmsystem = LoadLibrary16("mmsystem.dll")))
the correct test should be
> +    if((mmsystem = LoadLibrary16("mmsystem.dll")) < 32)
(the other values (< 32) are the error codes)

A+
-- 
---------------
Eric Pouech (http://perso.wanadoo.fr/eric.pouech/)
"The future will be better tomorrow", Vice President Dan Quayle

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic