Changeset 1956


Ignore:
Timestamp:
May 15, 2008 9:08:32 AM (16 years ago)
Author:
bennylp
Message:

Fixed bug with pj_generate_unique_string() initialization trying to access the critical section which has not been created in pj_init(), when guid_simple.c is used on Windows (thanks Roland Klabunde/Thomas?)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pj/os_core_win32.c

    r1841 r1956  
    145145    /* pj_srand( GetCurrentProcessId() ); */ 
    146146 
     147    /* Initialize critical section. */ 
     148    if ((rc=init_mutex(&critical_section_mutex, "pj%p")) != PJ_SUCCESS) 
     149        return rc; 
     150 
    147151    /* Startup GUID. */ 
    148152    guid.ptr = dummy_guid; 
    149153    pj_generate_unique_string( &guid ); 
    150  
    151     /* Initialize critical section. */ 
    152     if ((rc=init_mutex(&critical_section_mutex, "pj%p")) != PJ_SUCCESS) 
    153         return rc; 
    154154 
    155155    /* Initialize exception ID for the pool.  
Note: See TracChangeset for help on using the changeset viewer.