Changeset 1674

Show
Ignore:
Timestamp:
07/31/08 12:27:42 (1 month ago)
Author:
common
Message:

libemu

  • allow hooking URLDwnloadToFile
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libemu/trunk/src/environment/win32/env_w32_dll_export_urlmon_hooks.c

    r1672 r1674  
    9494 
    9595 
     96        uint32_t returnvalue=0; 
     97        if ( hook->hook.win->userhook != NULL ) 
     98        { 
     99                returnvalue = hook->hook.win->userhook(env, hook,  
     100                                                                                           NULL, 
     101                                                                                           emu_string_char(url), 
     102                                                                                           emu_string_char(filename), 
     103                                                                                           0, 
     104                                                                                           NULL); 
     105        }else 
     106        { 
     107                returnvalue = 0; 
     108        } 
    96109 
    97110 
     111        emu_cpu_reg32_set(c, eax, returnvalue); 
    98112 
    99113//      logDebug(env->emu, " %s -> %s\n", emu_string_char(url), emu_string_char(filename)); 
     
    112126                emu_profile_argument_add_int(env->profile, "LPBINDSTATUSCALLBACK", "lpfnCB", statuscallbackfn); 
    113127 
    114                 emu_profile_function_returnvalue_int_set(env->profile, "HRESULT", 0); 
     128                emu_profile_function_returnvalue_int_set(env->profile, "HRESULT", returnvalue); 
    115129        } 
    116130