src/audio/windx5/SDL_dx5audio.c
changeset 453 a6fa62b1be09
parent 375 17976f0f503f
child 469 a1284fd544aa
     1.1 --- a/src/audio/windx5/SDL_dx5audio.c	Mon Aug 19 18:33:29 2002 +0000
     1.2 +++ b/src/audio/windx5/SDL_dx5audio.c	Tue Aug 20 00:20:06 2002 +0000
     1.3 @@ -63,7 +63,7 @@
     1.4  
     1.5  	/* Version check DSOUND.DLL (Is DirectX okay?) */
     1.6  	dsound_ok = 0;
     1.7 -	DSoundDLL = LoadLibrary("DSOUND.DLL");
     1.8 +	DSoundDLL = LoadLibrary(TEXT("DSOUND.DLL"));
     1.9  	if ( DSoundDLL != NULL ) {
    1.10  		/* We just use basic DirectSound, we're okay */
    1.11  		/* Yay! */
    1.12 @@ -95,7 +95,7 @@
    1.13  		 * to fall back to the DIB driver. */
    1.14  		if (dsound_ok) {
    1.15  			/* DirectSoundCaptureCreate was added in DX5 */
    1.16 -			if (!GetProcAddress(DSoundDLL, "DirectSoundCaptureCreate"))
    1.17 +			if (!GetProcAddress(DSoundDLL, TEXT("DirectSoundCaptureCreate")))
    1.18  				dsound_ok = 0;
    1.19  
    1.20  		}
    1.21 @@ -121,10 +121,10 @@
    1.22  	int status;
    1.23  
    1.24  	DX5_Unload();
    1.25 -	DSoundDLL = LoadLibrary("DSOUND.DLL");
    1.26 +	DSoundDLL = LoadLibrary(TEXT("DSOUND.DLL"));
    1.27  	if ( DSoundDLL != NULL ) {
    1.28  		DSoundCreate = (void *)GetProcAddress(DSoundDLL,
    1.29 -					"DirectSoundCreate");
    1.30 +					TEXT("DirectSoundCreate"));
    1.31  	}
    1.32  	if ( DSoundDLL && DSoundCreate ) {
    1.33  		status = 0;
    1.34 @@ -189,7 +189,7 @@
    1.35  static void SetDSerror(const char *function, int code)
    1.36  {
    1.37  	static const char *error;
    1.38 -	static char  errbuf[BUFSIZ];
    1.39 +	static char  errbuf[1024];
    1.40  
    1.41  	errbuf[0] = 0;
    1.42  	switch (code) {