mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
rdtk: Fixed warnings, added assertions
This commit is contained in:
@@ -20,7 +20,9 @@
|
||||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <freerdp/log.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include <winpr/wlog.h>
|
||||
#include <rdtk/rdtk.h>
|
||||
|
||||
#include <X11/Xlib.h>
|
||||
@@ -36,7 +38,7 @@ int main(int argc, char** argv)
|
||||
int x, y;
|
||||
int width;
|
||||
int height;
|
||||
BYTE* buffer;
|
||||
uint8_t* buffer;
|
||||
int scanline;
|
||||
int pf_count;
|
||||
XEvent event;
|
||||
@@ -100,7 +102,7 @@ int main(int argc, char** argv)
|
||||
return 1;
|
||||
|
||||
scanline = width * 4;
|
||||
buffer = (BYTE*)calloc(height, scanline);
|
||||
buffer = (uint8_t*)calloc(height, scanline);
|
||||
if (!buffer)
|
||||
return 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user