mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 14:53:40 +00:00
ddraw_test: Use const char* for string constants, gcc 4.4 warning
svn path=/trunk/; revision=42906
This commit is contained in:
parent
eb65544870
commit
b84ac6c703
3 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@ HWND CreateBasicWindow (VOID);
|
||||||
|
|
||||||
LPDIRECTDRAW7 DirectDraw;
|
LPDIRECTDRAW7 DirectDraw;
|
||||||
|
|
||||||
BOOL TestCaps (char* dummy, DWORD Caps, HRESULT test1, HRESULT test2)
|
BOOL TestCaps (const char* dummy, DWORD Caps, HRESULT test1, HRESULT test2)
|
||||||
{
|
{
|
||||||
LPDIRECTDRAWSURFACE7 Surface = NULL;
|
LPDIRECTDRAWSURFACE7 Surface = NULL;
|
||||||
DDSURFACEDESC2 Desc = { 0 };
|
DDSURFACEDESC2 Desc = { 0 };
|
||||||
|
|
|
@ -24,7 +24,7 @@ typedef BOOL (*TESTPROC)(INT*, INT*);
|
||||||
|
|
||||||
typedef struct tagTEST
|
typedef struct tagTEST
|
||||||
{
|
{
|
||||||
CHAR* Test;
|
const CHAR* Test;
|
||||||
TESTPROC Proc;
|
TESTPROC Proc;
|
||||||
} TEST, *PTEST;
|
} TEST, *PTEST;
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
#define GetCode(X) printf("%s\n", DDErrorString(X));
|
#define GetCode(X) printf("%s\n", DDErrorString(X));
|
||||||
|
|
||||||
PCHAR DDErrorString (HRESULT hResult)
|
const PCHAR DDErrorString (HRESULT hResult)
|
||||||
{
|
{
|
||||||
switch (hResult)
|
switch (hResult)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue