Re: mmsystem should be loaded at startup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux