Changeset 21463 for trunk/src/kernel32/wprocess.cpp
- Timestamp:
- Sep 29, 2010, 12:46:01 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/wprocess.cpp
r21462 r21463 1984 1984 //****************************************************************************** 1985 1985 //****************************************************************************** 1986 static void OSLibSetBeginLibpathA(char *lpszBeginlibpath) 1987 { 1988 PSZ psz = NULL; 1989 if (lpszBeginlibpath) { 1990 psz = (PSZ)malloc(strlen(lpszBeginlibpath) + 1); 1991 CharToOemA(lpszBeginlibpath, psz); 1992 } 1993 OSLibSetBeginLibpath(psz); 1994 if (psz) { 1995 free(psz); 1996 } 1997 } 1998 //****************************************************************************** 1999 //****************************************************************************** 2000 static void OSLibQueryBeginLibpathA(char *lpszBeginlibpath, int size) 2001 { 2002 OSLibQueryBeginLibpath(lpszBeginlibpath, size); 2003 OemToCharA(lpszBeginlibpath, lpszBeginlibpath); 2004 } 2005 //****************************************************************************** 2006 //****************************************************************************** 1986 2007 BOOL WINAPI CreateProcessA( LPCSTR lpApplicationName, LPSTR lpCommandLine, 1987 2008 LPSECURITY_ATTRIBUTES lpProcessAttributes, … … 2200 2221 if(oldlibpath) 2201 2222 { 2202 OSLibQueryBeginLibpath (oldlibpath, 4096);2223 OSLibQueryBeginLibpathA(oldlibpath, 4096); 2203 2224 2204 2225 char *tmp = strrchr(szAppName, '\\'); 2205 2226 if(tmp) *tmp = 0; 2206 2227 2207 OSLibSetBeginLibpath (szAppName);2228 OSLibSetBeginLibpathA(szAppName); 2208 2229 if(tmp) *tmp = '\\'; 2209 2230 … … 2358 2379 2359 2380 if(oldlibpath) { 2360 OSLibSetBeginLibpath (oldlibpath);2381 OSLibSetBeginLibpathA(oldlibpath); 2361 2382 free(oldlibpath); 2362 2383 }
Note:
See TracChangeset
for help on using the changeset viewer.