Ticket #264: patch-264b.txt

File patch-264b.txt, 631 bytes (added by Yuri Dario, 10 years ago)
Line 
1Index: src/emx/src/lib/sys/b_ldrOpen.c
2===================================================================
3--- src/emx/src/lib/sys/b_ldrOpen.c     (revision 3803)
4+++ src/emx/src/lib/sys/b_ldrOpen.c     (working copy)
5@@ -60,6 +60,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.