Ignore:
Timestamp:
Jun 8, 1999, 5:49:37 PM (26 years ago)
Author:
phaller
Message:

ADD: Added support for RtlInitOemString and RtlFreeOemString

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/NTDLL/rtlstr.cpp

    r51 r56  
    214214
    215215/**************************************************************************
    216  *                 RtlInitString               [NTDLL.402]
    217  */
    218 VOID WINAPI RtlInitString(PSTRING target,
    219                           LPCSTR  source)
    220 {
    221   dprintf (("NTDLL: RtlInitString(%08xh, %08xh)\n",
    222             target,
    223             source));
     216 *                 RtlInitOemString           
     217 */
     218VOID WINAPI RtlInitOemString(POEM_STRING target,
     219                              LPCSTR       source)
     220{
     221  dprintf(("NTDLL: RtlInitOemString(%08xh, %08xh)\n",
     222           target,
     223           source));
    224224
    225225  target->Length        = target->MaximumLength = 0;
     
    233233
    234234
     235
     236/**************************************************************************
     237 *                 RtlInitString               [NTDLL.402]
     238 */
     239VOID WINAPI RtlInitString(PSTRING target,
     240                          LPCSTR  source)
     241{
     242  dprintf (("NTDLL: RtlInitString(%08xh, %08xh)\n",
     243            target,
     244            source));
     245
     246  target->Length        = target->MaximumLength = 0;
     247  target->Buffer        = (LPSTR)source;
     248  if (!source)
     249     return;
     250
     251  target->MaximumLength = lstrlenA(target->Buffer);
     252  target->Length        = target->MaximumLength+1;
     253}
     254
     255
    235256/**************************************************************************
    236257 *                 RtlInitUnicodeString        [NTDLL.403]
     
    281302               AnsiString->Buffer);
    282303}
     304
     305
     306/**************************************************************************
     307 * RtlFreeOemString
     308 */
     309VOID WINAPI RtlFreeOemString(POEM_STRING OemString)
     310{
     311  dprintf(("NTDLL: RtlFreeOemString(%08xh)\n",
     312           OemString));
     313
     314  if( OemString->Buffer )
     315      HeapFree(GetProcessHeap(),
     316               0,
     317               OemString->Buffer);
     318}
     319
    283320
    284321
Note: See TracChangeset for help on using the changeset viewer.