Browse Source

Crash because of uninitialized critical section (Windows) #113

merge-experiment
dunemaster 9 years ago
parent
commit
5920a6e760
4 changed files with 38 additions and 3 deletions
  1. +9
    -0
      .gitignore
  2. +13
    -1
      build-windows/libetpan/libetpan.vcproj
  3. +10
    -1
      src/data-types/mmapstring_private.h
  4. +6
    -1
      src/windows/win_init.cpp

+ 9
- 0
.gitignore View File

@ -5,6 +5,12 @@
.deps
.libs
.DS_Store
*.obj
*.pdb
*.idb
*.suo
*.ncb
*.user
project.xcworkspace/
xcuserdata/
@ -23,6 +29,9 @@ xcuserdata/
/Makefile
/Makefile.in
/autom4te.cache/
/build-windows/include/libetpan
/build-windows/Debug
/build-windows/Debug_ssl
/build-windows/Makefile
/build-windows/Makefile.in
/config.h


+ 13
- 1
build-windows/libetpan/libetpan.vcproj View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Version="9,00"
Name="libetpan"
ProjectGUID="{BA4DED3C-E56F-4484-BFC3-9C13E461A1BE}"
RootNamespace="libetpan"
@ -1638,6 +1638,18 @@
RelativePath="..\..\src\windows\win_etpan.h"
>
</File>
<File
RelativePath="..\..\src\windows\win_init.cpp"
>
<FileConfiguration
Name="Debug_ssl|Win32"
>
<Tool
Name="VCCLCompilerTool"
CompileAs="2"
/>
</FileConfiguration>
</File>
</Filter>
</Filter>
<Filter


+ 10
- 1
src/data-types/mmapstring_private.h View File

@ -2,6 +2,15 @@
#define MMAPSTRING_PRIVATE_H
extern void mmapstring_init_lock(void);
#ifdef __cplusplus
extern "C"
{
#endif
extern void mmapstring_init_lock(void);
#ifdef __cplusplus
}
#endif
#endif

+ 6
- 1
src/windows/win_init.cpp View File

@ -23,7 +23,12 @@ class win_init {
#ifdef _MSC_VER
/* Initialise Mutexs */
mmapstring_init_lock();
mailstream_ssl_init_lock();
#ifdef USE_SSL
{
mailstream_ssl_init_lock();
}
#endif
#endif
}
~win_init() {


Loading…
Cancel
Save