Displaying 16 results from an estimated 16 matches for "getprocessheap".
2008 Apr 22
1
HeapAlloc vs. malloc. How does HeapAlloc work?
...have to check NULL value after each calling of this function, don't I?
I have found this code in Wine 0.9.57:
In dlls/dbghelp/stabs.c function 'static int stabs_new_include(const char* file, unsigned long val)' line 163:
??????? if (!include_defs)
??????????? include_defs = HeapAlloc(GetProcessHeap(), 0,
???????????????????????????????????? sizeof(include_defs[0]) * num_alloc_include_def);
??????? else
??????????? include_defs = HeapReAlloc(GetProcessHeap(), 0, include_defs,
?????????????????????????????????????? sizeof(include_defs[0]) * num_alloc_include_def);
??????? memset(include_defs +...
2008 May 09
4
VB6 and wine_get_unix_file_name
Hello,
I'm trying to make a function for using wine_get_unix_file_name in VB6
programs.
Private Declare Function lstrcpyA Lib "kernel32.dll" (ByVal lpString1 As
String, ByVal lpString2 As Long) As Long
Public Declare Function GetProcessHeap Lib "kernel32" () As Long
Public Declare Function HeapFree Lib "kernel32" (ByVal hHeap As Long, ByVal
dwFlags As Long, IpMem As Any) As Long
Public Declare Function wine_get_unix_file_name Lib "kernel32" (ByVal
lpszSrc As String) As Long
Public Function GetUnixPa...
2012 Jul 27
3
[LLVMdev] Roundtrip clang -> llc -> clang fails
Hi!
I am not sure if this is a bug or not.
I have the following non-sense C module exc_alloc.c:
#include <windows.h>
void *AllocMem() {
HANDLE heap = GetProcessHeap();
void *p = HeapAlloc(heap, HEAP_GENERATE_EXCEPTIONS |
HEAP_ZERO_MEMORY, 16*1024*1014*1024);
return p;
}
If I execute the following commands
clang -S -emit-llvm -o exc_alloc.ll exc_alloc.c
llc -filetype=asm exc_alloc.ll
clang -c exc_alloc.s
then I get the error messages
exc_alloc.s:...
2010 Jul 07
3
Message: "err:psdrv:PSDRV_PPDGetNextTuple Line too long."
...e->key[endkey - line] = '\0';
00405
00406 if(gotoption) { /* opt points to 1st non-space character of the option */
00407 cp = strpbrk(opt, ":/");
00408 if(!cp) {
00409 ERR("Error in line '%s'?\n", line);
00410 HeapFree(GetProcessHeap(), 0, tuple->key);
00411 goto start;
00412 }
00413 tuple->option = HeapAlloc( PSDRV_Heap, 0, cp - opt + 1 );
00414 if(!tuple->option) return FALSE;
00415 memcpy(tuple->option, opt, cp - opt);
00416 tuple->option[cp - opt] = '\0';
00417...
2004 Oct 21
6
wine-20041019 build failed
...ENTRANT -fPIC -Wall -pipe
-mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wpointer-arith
-I/usr/local/ssl/include -I/usr/gnome2/include -march=k6-3 -mtune=k6-3 -O2 -o
heap.o heap.c
heap.c: In function `GlobalLock':
heap.c:252: sorry, unimplemented: inlining failed in call to 'GetProcessHeap':
redefined extern inline functions are not considered for inlining
heap.c:403: sorry, unimplemented: called from here
heap.c:252: sorry, unimplemented: inlining failed in call to 'GetProcessHeap':
redefined extern inline functions are not considered for inlining
heap.c:427: sorry, un...
2009 Mar 15
2
Unable to run Perfect World in Wine
Recently, I tried install a game called Perfect World (http://pwi.perfectworld.com/), which has not been tested in Wine yet. To my surprise, the installer ran beautifully. However, when I went to open it from the desktop shortcut, I received an error. WineHelper's log had this to say:
Code:
pfixme:d3d:IWineD3DImpl_FillGLCaps OpenGL implementation supports 16 vertex samplers and 16 total
2012 Jul 28
0
[LLVMdev] Roundtrip clang -> llc -> clang fails
On Fri, Jul 27, 2012 at 3:36 PM, Kai <kai at redstar.de> wrote:
> Hi!
>
> I am not sure if this is a bug or not.
>
> I have the following non-sense C module exc_alloc.c:
>
> #include <windows.h>
>
> void *AllocMem() {
> HANDLE heap = GetProcessHeap();
> void *p = HeapAlloc(heap, HEAP_GENERATE_EXCEPTIONS |
> HEAP_ZERO_MEMORY, 16*1024*1014*1024);
> return p;
> }
>
> If I execute the following commands
>
> clang -S -emit-llvm -o exc_alloc.ll exc_alloc.c
> llc -filetype=asm exc_alloc.ll
> clang -c exc_alloc...
2010 Nov 14
0
freebsd oss sound dsp scheme
...ossdev.dev_name = StrDup("/dev/dsp0.0",NULL);
WOutDev[0].ossdev.mixer_name = WInDev[0].ossdev.mixer_name = StrDup("/dev/mixer",NULL);
for (i = 1; i < MAX_WAVEDRV; ++i)
{
WOutDev[i].ossdev.dev_name = WInDev[i].ossdev.dev_name = HeapAlloc(GetProcessHeap(),0,11);
- sprintf(WOutDev[i].ossdev.dev_name, "/dev/dsp%u", i);
+ sprintf(WOutDev[i].ossdev.dev_name, "/dev/dsp0.%u", i);
WOutDev[i].ossdev.mixer_name = WInDev[i].ossdev.mixer_name = HeapAlloc(GetProcessHeap(),0,13);
sprintf(WOutD...
2010 May 15
2
Wineboot: useless dialog
...HICON icon = LoadImageW( 0, (LPCWSTR)IDI_WINLOGO, IMAGE_ICON, 48, 48, LR_SHARED );
SendDlgItemMessageW( hwnd, IDC_WAITICON, STM_SETICON, (WPARAM)icon, 0 );
SendDlgItemMessageW( hwnd, IDC_WAITTEXT, WM_GETTEXT, 1024, (LPARAM)text );
buffer = HeapAlloc( GetProcessHeap(), 0, (strlenW(text) + strlenW(name) + 1) * sizeof(WCHAR) );
sprintfW( buffer, text, name );
SendDlgItemMessageW( hwnd, IDC_WAITTEXT, WM_SETTEXT, 0, (LPARAM)buffer );
HeapFree( GetProcessHeap(), 0, buffer );
}
break;
}
return 0;
}
Why...
2005 Dec 09
3
fixme:font:load_VDMX Failed to retrieve vTable
hi my reports are not well displayed on my access97 app.
fonts are displayed i anora location and separed
I got this fixme
fixme:font:load_VDMX Failed to retrieve vTable
somebdoy knows how to fix it?
thanks all
2008 Dec 18
5
EverQuest - worked once, but no more
...e66
> 000d:Call advapi32.RegCloseKey(00000020) ret=7ee5eb96
> 000d:Ret advapi32.RegCloseKey() retval=00000000 ret=7ee5eb96
> 000d:Call ntdll.RtlDeleteCriticalSection(0011a510) ret=7ee5eba4
> 000d:Ret ntdll.RtlDeleteCriticalSection() retval=00000000 ret=7ee5eba4
> 000d:Call KERNEL32.GetProcessHeap() ret=7ee5ebac
> 000d:Ret KERNEL32.GetProcessHeap() retval=00110000 ret=7ee5ebac
> 000d:Call ntdll.RtlFreeHeap(00110000,00000000,0011a500) ret=7ee5ebc0
> 000d:Ret ntdll.RtlFreeHeap() retval=00000001 ret=7ee5ebc0
> 000d:Call KERNEL32.ExitProcess(00000000) ret=7ee65eb9
> 000d:Call PE...
2007 Mar 30
0
Wine release 0.9.34
...t/ftp: Move a definition in FTP_FtpFindFirstFileW (Coverity).
wininet/tests: Expose a problem with FtpGetFile.
wininet/ftp: Remove unneeded check.
wininet/ftp: Fix potential memory leak.
netapi32/tests: Use LoadLibrary where needed and skip.
shlwapi/path: Proper use of GetProcessHeap().
oleaut32/tests: Use skip.
kernel32/profile: Rename a test.
kernel32/profile: Move GetPrivateProfileSectionA to its own test.
kernel32/profile: Add a few NULL checks (Coverity).
kernel32/profile: Some parameter tests for GetPrivateProfileSectionA.
advapi32/test...
2010 Oct 01
0
Wine release 1.3.4
...request: Implement IXMLHttpRequest::setRequestHeader().
Paul Vriens (6):
user32: Fix a typo.
urlmon/tests: Fix test failures on Win9x/WinMe by using more A-functions.
atl/tests: Fix a test failure on Win95.
msi/tests: Prevent a popup on Windows NT.
dbghelp: Fix use of GetProcessHeap.
ddraw: Pass the correct size to memset (Coccinelle).
Peter Oberndorfer (6):
wineconsole: Allow to select popup menu entries with the right mouse button.
ntdll/tests: Remove unused NtWaitForSingleObject import.
kernel32: Add test for WaitForSingleObject with lower 2 bits of...
2008 Dec 20
0
Wine release 1.1.11
...in make_requests.
ntdll: Add a heuristic to detect dlls that are wrongly marked as using native subsystem.
cabinet: Don't allocate a huge buffer on the stack.
ntdll: Enforce correct protection values in virtual memory functions.
include: Fix typo in the 64-bit version of GetProcessHeap().
ntdll: Convert the handles to server handles in NTDLL_wait_for_multiple_objects.
ntdll: Fix heap management for 64-bit.
libwine: Don't try to use the preloader on non-i386.
msi: Don't include msvcrt headers.
setupapi: Don't include msvcrt headers....
2008 Apr 14
10
wine asio
Does wine asio still work with the current version of WINE?
I tried installing it per the instructions and it didn't want to make.
2010 May 07
0
Wine release 1.1.44
...r of colors when loading from a .ico file.
user32: Fix drawing of 1-bpp icons in DrawIconEx.
user32: Use the correct rop when blitting an icon in DrawIconEx.
user32: Make DrawIcon simply call DrawIconEx.
shell32: Fix marshalling of 1-bpp systray icons.
kernel32: Define GetProcessHeap as an assembler function on i386.
kernel32: Add an x86_64 implementation for the TEB access functions.
Alistair Leslie-Hughes (5):
msxml4: Register classes.
msxml3: Register classes.
urlmon: Strip forward and back slashes when using the file: protocol.
mshtml: Impleme...