mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
Removed winpr_exit
As the cleanup functions are called by atexit a dedicated cleanup call is no longer required.
This commit is contained in:
@@ -61,7 +61,7 @@ int main(int argc, char** argv)
|
||||
if (!display)
|
||||
{
|
||||
WLog_ERR(TAG, "Cannot open display");
|
||||
return winpr_exit(1);
|
||||
return 1;
|
||||
}
|
||||
|
||||
x = 10;
|
||||
@@ -97,12 +97,12 @@ int main(int argc, char** argv)
|
||||
|
||||
engine = rdtk_engine_new();
|
||||
if (!engine)
|
||||
return winpr_exit(1);
|
||||
return 1;
|
||||
|
||||
scanline = width * 4;
|
||||
buffer = (BYTE*) calloc(height, scanline);
|
||||
if (!buffer)
|
||||
return winpr_exit(1);
|
||||
return 1;
|
||||
|
||||
surface = rdtk_surface_new(engine, buffer, width, height, scanline);
|
||||
|
||||
@@ -152,5 +152,5 @@ int main(int argc, char** argv)
|
||||
|
||||
rdtk_engine_free(engine);
|
||||
|
||||
return winpr_exit(0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user