[Bug 32225] New: LoadLibrary succeeds when it should fail

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Nov 14 14:23:28 CST 2012


http://bugs.winehq.org/show_bug.cgi?id=32225

             Bug #: 32225
           Summary: LoadLibrary succeeds when it should fail
           Product: Wine
           Version: 1.5.17
          Platform: x86
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: kernel32
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: djelinski1 at gmail.com
    Classification: Unclassified


I was checking how .NET handles ODBC connections under wine. I used winetricks
jet40 mdac28 dotnet20 to install natives. Then I run my application. An attempt
to use OdbcConnection failed with some unixODBC error. The relay log showed the
following:

0009:Call KERNEL32.LoadLibraryExW(001a9b68
L"C:\\windows\\assembly\\GAC_32\\System.Data\\2.0.0.0__b77a5c561934e089\\odbc32.dll",00000000,00000008)
ret=79e862c8
0009:Call PE DLL (proc=0x7dde42c0,module=0x7ddd0000
L"odbc32.dll",reason=PROCESS_ATTACH,res=(nil))
0009:Call KERNEL32.DisableThreadLibraryCalls(7ddd0000) ret=7ddde814
0009:Ret  KERNEL32.DisableThreadLibraryCalls() retval=00000001 ret=7ddde814
(...)
0009:Ret  PE DLL (proc=0x7dde42c0,module=0x7ddd0000
L"odbc32.dll",reason=PROCESS_ATTACH,res=(nil)) retval=1
0009:Ret  KERNEL32.LoadLibraryExW() retval=7ddd0000 ret=79e862c8

The listed directory does not contain odbc32.dll, so this call should have
failed. Instead it loaded wine's ODBC.

On a side note, setting odbc32 to native instead of native,builtin worked.

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list