The MinGW.org Windows System Libraries
修订版 | e5e5f0625a26ec0902f0f23cea7e1be098f8ee39 (tree) |
---|---|
时间 | 2021-05-25 23:28:11 |
作者 | Keith Marshall <keith@user...> |
Commiter | Keith Marshall |
Correct an entry-point look-up logic defect.
@@ -1,3 +1,10 @@ | ||
1 | +2021-05-25 Keith Marshall <keith@users.osdn.me> | |
2 | + | |
3 | + Correct an entry-point look-up logic defect. | |
4 | + | |
5 | + * lib/availapi.c (__bound_dll_entry_point) [dll == NULL]: Should be... | |
6 | + [dll != NULL]: ...this; correct it. | |
7 | + | |
1 | 8 | 2021-05-23 Keith Marshall <keith@users.osdn.me> |
2 | 9 | |
3 | 10 | Implement a generic legacy platform support infrastructure. |
@@ -118,7 +118,7 @@ void *__bound_dll_entry_point | ||
118 | 118 | * the entry-point, or mark it as permanently unsupported. |
119 | 119 | */ |
120 | 120 | HMODULE dll = GetModuleHandleA( dllname ); |
121 | - hook = (dll == NULL) ? GetProcAddress( dll, procname ) : API_UNSUPPORTED; | |
121 | + hook = (dll != NULL) ? GetProcAddress( dll, procname ) : API_UNSUPPORTED; | |
122 | 122 | } |
123 | 123 | /* In any case, we return the (possibly updated) hook, which should |
124 | 124 | * then be recorded by the caller. |