Ticket #1571: patch for building on win32.patch

File patch for building on win32.patch, 0.9 KB (added by jimmy, 4 years ago)
  • src/dynext.c

     
    341341    if (!STRING_IS_EMPTY(lib) && memcmp(lib->strstart, "lib", 3) == 0) { 
    342342        *handle = Parrot_dlopen((char *)lib->strstart + 3, 0); 
    343343        if (*handle) { 
    344             path = Parrot_str_substr(interp, lib, 3, lib->strlen - 3, NULL, 0); 
     344            path = Parrot_str_substr(interp, lib, 3, lib->strlen - 3); 
    345345            return path; 
    346346        } 
    347347    } 
     
    351351#ifdef __CYGWIN__ 
    352352    if (!STRING_IS_EMPTY(lib) && memcmp(lib->strstart, "lib", 3) == 0) { 
    353353        path = Parrot_str_concat(interp, CONST_STRING(interp, "cyg"), 
    354             Parrot_str_substr(interp, lib, 3, lib->strlen - 3, NULL, 0)); 
     354            Parrot_str_substr(interp, lib, 3, lib->strlen - 3)); 
    355355 
    356356        *handle = dlopen_string(interp, flags, path); 
    357357