# HG changeset patch # User Tassilo Philipp # Date 1571956349 -7200 # Node ID 2e8be88dad110906b388e8ca74efbd7d243686ce # Parent b51401bc4c37f8293e0b25ab09c592cad827595c - comment cleanup diff -r b51401bc4c37 -r 2e8be88dad11 dynload/dynload_windows.c --- a/dynload/dynload_windows.c Thu Oct 24 23:39:57 2019 +0200 +++ b/dynload/dynload_windows.c Fri Oct 25 00:32:29 2019 +0200 @@ -60,7 +60,7 @@ /* ... convert (and use r as success flag), ... */ r = (MultiByteToWideChar(CP_UTF8, 0, libPath, -1, ws, r) == r); - pLib = (DLLib*)(r ? LoadLibraryW(ws) : NULL);/*@@@ testcode of unicode path*/ + pLib = (DLLib*)(r ? LoadLibraryW(ws) : NULL); /* ... free temp space and return handle */ dlFreeMem(ws); @@ -95,7 +95,7 @@ static const int MAX_EXT_PATH = 1<<15; /* max extended path length (32768) */ int nc = 1<<6; /* guess start buffer size, */ - while(nc <= MAX_EXT_PATH)/*@@@ testcode*/ + while(nc <= MAX_EXT_PATH)/*@@@ add testcode for super long paths*/ { ws = (wchar_t*)dlAllocMem(nc * sizeof(wchar_t)); if(!ws) @@ -105,7 +105,7 @@ /* r == nc if string was truncated, double temp buffer size */ if(r == nc) { - nc <<= 1;/*@@@ testcode*/ + nc <<= 1; dlFreeMem(ws); continue; }