Beispiel #1
0
HTRANSFORM create_transform( struct transform *transform )
{
    HTRANSFORM handle;

    EnterCriticalSection( &MSCMS_handle_cs );

    if ((handle = alloc_transform_handle()))
    {
        DWORD_PTR index = (DWORD_PTR)handle - 1;
        memcpy( &transformtable[index], transform, sizeof(struct transform) );
    }
    LeaveCriticalSection( &MSCMS_handle_cs );
    return handle;
}
Beispiel #2
0
HTRANSFORM create_transform( struct transform *transform )
{
    HTRANSFORM handle;

    EnterCriticalSection( &mscms_handle_cs );

    if ((handle = alloc_transform_handle()))
    {
        DWORD_PTR index = (DWORD_PTR)handle - 1;
        transformtable[index] = *transform;
    }
    LeaveCriticalSection( &mscms_handle_cs );
    return handle;
}