i want to patch the functio SysAppStartup but may system crash in
instruction          (*)

Any suggustion??

Err mySysAppStartup ( SysAppInfoPtr appInfoPP, Ptr prevGlobalsP, Ptr
globalsP)
{
   DWord d;
   FtrGet( 'TyTt', 10000, &d );
    Err (*orgfunc)( SysAppInfoPtr, Ptr, Ptr);
     orgfunc = (Err (*)(SysAppInfoPtr, Ptr, Ptr))d;

  if ((appInfoPP)->cmd != sysAppLaunchCmdNormalLaunch)
        return orgfunc(appInfoPP, prevGlobalsP, globalsP);

                  MyDB1 = DmOpenDatabaseByTypeCreator('data', 'MOST',
dmModeReadOnly);                    (*)
        return ;
}


Regards
Mostapha


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to