mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 07:13:23 +00:00
[ROSTESTS]
Fix 64 bit build of some modules (Samuel Serapion, modified by me) svn path=/trunk/; revision=47551
This commit is contained in:
parent
859c81ee74
commit
5cede710e0
17 changed files with 78 additions and 71 deletions
|
@ -15,7 +15,7 @@ int main( int argc, char **argv ) {
|
|||
fprintf( stderr, "%lu: Starting\n", GetCurrentProcessId() );
|
||||
|
||||
if( argc == 2 ) {
|
||||
h_process = (HANDLE)atoi(argv[1]);
|
||||
h_process = (HANDLE)(ULONG_PTR)atoi(argv[1]);
|
||||
} else {
|
||||
if( !DuplicateHandle( GetCurrentProcess(),
|
||||
GetCurrentProcess(),
|
||||
|
@ -38,7 +38,7 @@ int main( int argc, char **argv ) {
|
|||
memset( &si, 0, sizeof( si ) );
|
||||
memset( &pi, 0, sizeof( pi ) );
|
||||
|
||||
sprintf( cmdline, "%s %lu", argv[0], (DWORD)h_process );
|
||||
sprintf( cmdline, "%s %p", argv[0], h_process );
|
||||
if( !CreateProcess(NULL, cmdline, NULL, NULL, TRUE, 0, NULL, NULL,
|
||||
&si, &pi ) ) {
|
||||
fprintf( stderr, "%lu: Could not create child process.\n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue