<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
"Dmitry Timoshkov" <<A href="mailto:dmitry@codeweavers.com">dmitry@codeweavers.com</A>> wrote:<BR><BR>> > This patch fixes bug 14699. It should fix all failed applications<BR>> > which try to load a dll from specific folder, and the dll is link<BR>> > another dll in the same folder.<BR>> <BR>> Please add a test case for this behaviour to confirm that your patch<BR>> is doing a correct thing.<BR><BR>Please ignore this patch. This is not how window work. Window&Wine solve it by<BR>LoadLibraryExW(module, NULL, LOAD_WITH_ALTERED_SEARCH_PATH) <BR> <BR>I will post another patch to just solve bug 14699.<BR> <BR>As discussed in my prev email: RE: DLL loading prolem when injecting into another process�<BR> <BR>@ -322,7 +322,7 @@ void *get_hook_proc( void *proc, const WCHAR *module )<BR>{<BR> TRACE( "loading %s\n", debugstr_w(module) );<BR> /* FIXME: the library will never be freed */<BR>- if (!(mod = LoadLibraryW(module))) return NULL;<BR>+ if (!(mod = LoadLibraryExW(module, NULL, LOAD_WITH_ALTERED_SEARCH_PATH))) return NULL;<BR> }<BR> return (char *)mod + (ULONG_PTR)proc;<BR>}<BR><BR>Currently there is no test case to show LoadLibraryW above has loaded the module in the process<BR>other than current process.<BR> <BR>But how can I write test case to justify using LoadLibraryExW instead LoadLibraryW above ? <BR> <BR>How can I know if another process has loaded the DLL containing GetMsgProc when I am trying to call<BR>SetWindowsHookEx(WH_GETMESSAGE, GetMsgProc, g_hinstDll,GetWindowThreadProcessId(hwnd, NULL));<BR><BR> <BR>Hongbo Ni<BR><br /><hr /> in your area now! <a href='http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fdating%2Eninemsn%2Ecom%2Eau%2Fchannel%2Findex%2Easpx%3Ftrackingid%3D1046247&_t=773166080&_r=WL_TAGLINE&_m=EXT' target='_new'>View photos of singles</a></body>
</html>