Ignore:
Timestamp:
Sep 29, 2010, 12:46:01 AM (15 years ago)
Author:
dmik
Message:

Undo interpreting strings as ANSI for certain OSLib APIs modified in the previous commits as it breaks the common logic where many other OSLib calls (e.g. all dealig with file names) seem to expect the OEM (OS/2) encoding.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/oslibmisc.cpp

    r21462 r21463  
    2323#include <malloc.h>  /*PLF Wed  98-03-18 05:15:04*/
    2424#include "oslibmisc.h"
    25 #include "win32api.h"
    2625#include <misc.h>
    2726#include <odincrt.h>
     
    347346void OSLibSetBeginLibpath(char *lpszBeginlibpath)
    348347{
    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);
    358349}
    359350//******************************************************************************
     
    362353{
    363354    DosQueryExtLIBPATH(lpszBeginlibpath, BEGIN_LIBPATH);
    364     OemToCharA(lpszBeginlibpath, lpszBeginlibpath);
    365355}
    366356//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.