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