Commit 06822b89 authored by Stefan Huehner's avatar Stefan Huehner Committed by Alexandre Julliard

Fix some write-strings warnings.

parent 6b7778f3
...@@ -65,7 +65,7 @@ static const char * dumpCooperativeLevel(DWORD level) ...@@ -65,7 +65,7 @@ static const char * dumpCooperativeLevel(DWORD level)
static void _dump_DSCAPS(DWORD xmask) { static void _dump_DSCAPS(DWORD xmask) {
struct { struct {
DWORD mask; DWORD mask;
char *name; const char *name;
} flags[] = { } flags[] = {
#define FE(x) { x, #x }, #define FE(x) { x, #x },
FE(DSCAPS_PRIMARYMONO) FE(DSCAPS_PRIMARYMONO)
...@@ -91,7 +91,7 @@ static void _dump_DSCAPS(DWORD xmask) { ...@@ -91,7 +91,7 @@ static void _dump_DSCAPS(DWORD xmask) {
static void _dump_DSBCAPS(DWORD xmask) { static void _dump_DSBCAPS(DWORD xmask) {
struct { struct {
DWORD mask; DWORD mask;
char *name; const char *name;
} flags[] = { } flags[] = {
#define FE(x) { x, #x }, #define FE(x) { x, #x },
FE(DSBCAPS_PRIMARYBUFFER) FE(DSBCAPS_PRIMARYBUFFER)
......
...@@ -71,7 +71,7 @@ char* wave_generate_la(WAVEFORMATEX* wfx, double duration, DWORD* size) ...@@ -71,7 +71,7 @@ char* wave_generate_la(WAVEFORMATEX* wfx, double duration, DWORD* size)
const char * getDSBCAPS(DWORD xmask) { const char * getDSBCAPS(DWORD xmask) {
static struct { static struct {
DWORD mask; DWORD mask;
char *name; const char *name;
} flags[] = { } flags[] = {
#define FE(x) { x, #x }, #define FE(x) { x, #x },
FE(DSBCAPS_PRIMARYBUFFER) FE(DSBCAPS_PRIMARYBUFFER)
......
...@@ -990,8 +990,8 @@ static void test_UDP(void) ...@@ -990,8 +990,8 @@ static void test_UDP(void)
static void WINAPI do_getservbyname( HANDLE *starttest ) static void WINAPI do_getservbyname( HANDLE *starttest )
{ {
struct { struct {
char *name; const char *name;
char *proto; const char *proto;
int port; int port;
} serv[2] = { {"domain", "udp", 53}, {"telnet", "tcp", 23} }; } serv[2] = { {"domain", "udp", 53}, {"telnet", "tcp", 23} };
......
...@@ -53,8 +53,8 @@ typedef void (WINAPI *EntryPointA)(HWND hWnd, HINSTANCE hInst, LPSTR lpszCmdLine ...@@ -53,8 +53,8 @@ typedef void (WINAPI *EntryPointA)(HWND hWnd, HINSTANCE hInst, LPSTR lpszCmdLine
* Control_RunDLL needs to have a window. So lets make us a very * Control_RunDLL needs to have a window. So lets make us a very
* simple window class. * simple window class.
*/ */
static TCHAR *szTitle = "rundll32"; static const TCHAR *szTitle = "rundll32";
static TCHAR *szWindowClass = "class_rundll32"; static const TCHAR *szWindowClass = "class_rundll32";
static HINSTANCE16 (WINAPI *pLoadLibrary16)(LPCSTR libname); static HINSTANCE16 (WINAPI *pLoadLibrary16)(LPCSTR libname);
static FARPROC16 (WINAPI *pGetProcAddress16)(HMODULE16 hModule, LPCSTR name); static FARPROC16 (WINAPI *pGetProcAddress16)(HMODULE16 hModule, LPCSTR name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment