Ignore:
Timestamp:
Nov 4, 1999, 8:49:13 PM (26 years ago)
Author:
phaller
Message:

Fix: CreateEventW fixed

File:
1 edited

Legend:

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

    r1460 r1601  
    1 /* $Id: kobjects.cpp,v 1.5 1999-10-26 21:42:25 phaller Exp $ */
     1/* $Id: kobjects.cpp,v 1.6 1999-11-04 19:49:13 phaller Exp $ */
    22
    33/*
     
    106106  char  *astring;
    107107
     108  if (arg4 != NULL) // support for unnamed semaphores
     109    astring = UnicodeToAsciiString((LPWSTR)arg4);
     110  else
     111    arg4 = NULL;
     112
    108113  dprintf(("KERNEL32: CreateEventW(%s)\n",
    109114           astring));
    110 
    111   astring = UnicodeToAsciiString((LPWSTR)arg4);
    112115
    113116  rc = HMCreateEvent(arg1,
     
    116119                    astring);
    117120
    118   FreeAsciiString(astring);
     121  if (astring != NULL)
     122    FreeAsciiString(astring);
    119123
    120124  return(rc);
Note: See TracChangeset for help on using the changeset viewer.