|
@@ -26,7 +26,7 @@ const
|
|
EmptyEnv: array[0..2] of PAnsiChar = (nil, nil, nil);
|
|
EmptyEnv: array[0..2] of PAnsiChar = (nil, nil, nil);
|
|
EmptyCmdLine: array[0..0] of PAnsiChar = ( '' );
|
|
EmptyCmdLine: array[0..0] of PAnsiChar = ( '' );
|
|
var
|
|
var
|
|
- i: longint;
|
|
|
|
|
|
+ i: cardinal;
|
|
p: PPAnsiChar;
|
|
p: PPAnsiChar;
|
|
begin
|
|
begin
|
|
// Get the current stack pointer, adjust and save it
|
|
// Get the current stack pointer, adjust and save it
|
|
@@ -46,7 +46,7 @@ begin
|
|
while i < 200 do
|
|
while i < 200 do
|
|
begin
|
|
begin
|
|
Dec(p);
|
|
Dec(p);
|
|
- if ptrint(p^) = i then
|
|
|
|
|
|
+ if ptruint(p^) = i then
|
|
begin
|
|
begin
|
|
// argc found
|
|
// argc found
|
|
operatingsystem_parameter_argc:=i;
|
|
operatingsystem_parameter_argc:=i;
|