Make sure to return an error if load_dll fails because the load order

is empty.
This commit is contained in:
Alexandre Julliard 2003-06-27 04:06:23 +00:00
parent b58e121326
commit b379334271
1 changed files with 1 additions and 1 deletions

View File

@ -960,7 +960,7 @@ static NTSTATUS load_dll( LPCSTR libname, DWORD flags, WINE_MODREF** pwm )
DWORD found;
BOOL allocated_libdir = FALSE;
static LPCSTR libdir = NULL; /* See above */
NTSTATUS nts = STATUS_SUCCESS;
NTSTATUS nts = STATUS_NO_SUCH_FILE;
*pwm = NULL;
if ( !libname ) return STATUS_DLL_NOT_FOUND; /* FIXME ? */