Ignore:
Timestamp:
Nov 14, 2001, 7:39:52 PM (24 years ago)
Author:
sandervl
Message:

removed unnecessary changes

File:
1 edited

Legend:

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

    r7334 r7342  
    1 /* $Id: virtual.cpp,v 1.41 2001-11-14 12:30:46 phaller Exp $ */
     1/* $Id: virtual.cpp,v 1.42 2001-11-14 18:38:51 sandervl Exp $ */
    22
    33/*
     
    6969                                      DWORD size_low, LPCWSTR name )
    7070{
    71 #ifdef __WIN32OS2__
    72   LPSTR nameA;
    73   STACK_strdupWtoA(name, nameA)
    74 #else
    75   LPSTR nameA = HEAP_strdupWtoA( GetProcessHeap(), 0, name );
    76 #endif
    77  
     71    LPSTR nameA = HEAP_strdupWtoA( GetProcessHeap(), 0, name );
    7872    HANDLE ret = CreateFileMappingA( hFile, attr, protect,
    79                                     size_high, size_low, nameA );
    80  
    81 #ifndef __WIN32OS2__
    82   HeapFree( GetProcessHeap(), 0, nameA );
    83 #endif
    84   return ret;
     73                                         size_high, size_low, nameA );
     74    HeapFree( GetProcessHeap(), 0, nameA );
     75    return ret;
    8576}
    8677
     
    110101HANDLE WINAPI OpenFileMappingW( DWORD access, BOOL inherit, LPCWSTR name)
    111102{
    112 #ifdef __WIN32OS2__
    113   LPSTR nameA;
    114   STACK_strdupWtoA(name, nameA)
    115 #else
    116103    LPSTR nameA = HEAP_strdupWtoA( GetProcessHeap(), 0, name );
    117 #endif
    118  
    119   HANDLE ret = OpenFileMappingA( access, inherit, nameA );
    120  
    121 #ifndef __WIN32OS2__
    122   HeapFree( GetProcessHeap(), 0, nameA );
    123 #endif
    124   return ret;
     104    HANDLE ret = OpenFileMappingA( access, inherit, nameA );
     105    HeapFree( GetProcessHeap(), 0, nameA );
     106    return ret;
    125107}
    126108
Note: See TracChangeset for help on using the changeset viewer.