Changeset 21462 for trunk/src/kernel32/oslibmisc.cpp
- Timestamp:
- Sep 29, 2010, 12:04:46 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/oslibmisc.cpp
r21426 r21462 23 23 #include <malloc.h> /*PLF Wed 98-03-18 05:15:04*/ 24 24 #include "oslibmisc.h" 25 #include "win32api.h" 25 26 #include <misc.h> 26 27 #include <odincrt.h> … … 346 347 void OSLibSetBeginLibpath(char *lpszBeginlibpath) 347 348 { 348 DosSetExtLIBPATH(lpszBeginlibpath, BEGIN_LIBPATH); 349 PSZ psz = NULL; 350 if (lpszBeginlibpath) { 351 psz = (PSZ)malloc(strlen(lpszBeginlibpath) + 1); 352 CharToOemA(lpszBeginlibpath, psz); 353 } 354 DosSetExtLIBPATH(psz, BEGIN_LIBPATH); 355 if (psz) { 356 free(psz); 357 } 349 358 } 350 359 //****************************************************************************** … … 353 362 { 354 363 DosQueryExtLIBPATH(lpszBeginlibpath, BEGIN_LIBPATH); 364 OemToCharA(lpszBeginlibpath, lpszBeginlibpath); 355 365 } 356 366 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.