diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-05-15 09:08:32 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-05-15 09:08:32 +0000 |
commit | 13af6ad7be091861bf922f3aabcce7e0ca9defbc (patch) | |
tree | 39a908aba385c052de392d5c858e3e73780b48e0 /pjlib | |
parent | c1121e3755df307a83b3e562beafc20b069b19f0 (diff) |
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)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1956 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib')
-rw-r--r-- | pjlib/src/pj/os_core_win32.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pjlib/src/pj/os_core_win32.c b/pjlib/src/pj/os_core_win32.c index 80c24604..93c97bc8 100644 --- a/pjlib/src/pj/os_core_win32.c +++ b/pjlib/src/pj/os_core_win32.c @@ -144,14 +144,14 @@ PJ_DEF(pj_status_t) pj_init(void) /* Or probably not. Let application in charge of this */ /* pj_srand( GetCurrentProcessId() ); */ - /* Startup GUID. */ - guid.ptr = dummy_guid; - pj_generate_unique_string( &guid ); - /* Initialize critical section. */ if ((rc=init_mutex(&critical_section_mutex, "pj%p")) != PJ_SUCCESS) return rc; + /* Startup GUID. */ + guid.ptr = dummy_guid; + pj_generate_unique_string( &guid ); + /* Initialize exception ID for the pool. * Must do so after critical section is configured. */ |