1 | Index: libc/src/kNIX/os2/b_ldrOpen.c |
---|
2 | =================================================================== |
---|
3 | --- libc/src/kNIX/os2/b_ldrOpen.c (revision 3803) |
---|
4 | +++ libc/src/kNIX/os2/b_ldrOpen.c (working copy) |
---|
5 | @@ -47,6 +47,14 @@ |
---|
6 | int rc; |
---|
7 | |
---|
8 | /* |
---|
9 | + * Access to main program is not supported. |
---|
10 | + */ |
---|
11 | + if (pszLibrary == NULL) |
---|
12 | + { |
---|
13 | + LIBCLOG_ERROR_RETURN_INT(ERROR_INVALID_PARAMETER); |
---|
14 | + } |
---|
15 | + |
---|
16 | + /* |
---|
17 | * Resolve the path if one is given. Ignore failures to resolve the file |
---|
18 | * name is it may lack the extension (I think) - DosLoadModule will fail, |
---|
19 | * so no problem. |
---|