diff options
author | tono <tono@openoffice.org> | 2010-03-24 19:26:36 +0900 |
---|---|---|
committer | tono <tono@openoffice.org> | 2010-03-24 19:26:36 +0900 |
commit | caba70f2ec22dd8da3fb3091679cd20af4a8ca34 (patch) | |
tree | 0ca123c722bc3413e6d0708a8fa0a2d19e82e455 | |
parent | 355411f5fbb6eee5c371a56edc9e57a619912d8c (diff) |
i#110194: Mingw port update fix: use alloca instead of _alloca in shell
-rw-r--r-- | shell/source/backends/wininetbe/wininetbackend.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/shell/source/backends/wininetbe/wininetbackend.cxx b/shell/source/backends/wininetbe/wininetbackend.cxx index 04de8fdd7d..c62ff6ffe1 100644 --- a/shell/source/backends/wininetbe/wininetbackend.cxx +++ b/shell/source/backends/wininetbe/wininetbackend.cxx @@ -37,6 +37,7 @@ #endif #include <windows.h> #include <wininet.h> +#include <sal/alloca.h> #if defined _MSC_VER #pragma warning(pop) #endif @@ -138,11 +139,11 @@ WinInetBackend::WinInetBackend() // in a stack overflow exception, we assume // this never happens, because of the relatively // small amount of memory we need - // _alloca is nice because it is fast and we don't + // alloca is nice because it is fast and we don't // have to free the allocated memory, it will be // automatically done lpi = reinterpret_cast< LPINTERNET_PROXY_INFO >( - _alloca( dwLength ) ); + alloca( dwLength ) ); bRet = lpfnInternetQueryOption( NULL, |