Commit d354a1ca authored by Alexandre Julliard's avatar Alexandre Julliard

Implemented _getdllprocaddr(), it cannot be simply a forward to

GetProcAddress.
parent 52ec0a3f
...@@ -254,7 +254,7 @@ ...@@ -254,7 +254,7 @@
@ cdecl _getcwd(str long) _getcwd @ cdecl _getcwd(str long) _getcwd
@ cdecl _getdcwd(long str long) _getdcwd @ cdecl _getdcwd(long str long) _getdcwd
@ cdecl _getdiskfree(long ptr) _getdiskfree @ cdecl _getdiskfree(long ptr) _getdiskfree
@ forward _getdllprocaddr kernel32.GetProcAddress @ cdecl _getdllprocaddr(long str long) _getdllprocaddr
@ cdecl _getdrive() _getdrive @ cdecl _getdrive() _getdrive
@ forward _getdrives kernel32.GetLogicalDrives @ forward _getdrives kernel32.GetLogicalDrives
@ stub _getmaxstdio #() @ stub _getmaxstdio #()
......
...@@ -472,3 +472,17 @@ int _unloaddll(int dll) ...@@ -472,3 +472,17 @@ int _unloaddll(int dll)
return err; return err;
} }
} }
/*********************************************************************
* _getdllprocaddr (MSVCRT.@)
*/
void *_getdllprocaddr(int dll, const char *name, int ordinal)
{
if (name)
{
if (ordinal != -1) return NULL;
return GetProcAddress( (HMODULE)dll, name );
}
if (HIWORD(ordinal)) return NULL;
return GetProcAddress( (HMODULE)dll, (LPCSTR)(ULONG_PTR)ordinal );
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment