Silenced a signed/unsigned mismatched via a cast.

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@653 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
spanne 2005-07-01 11:44:53 +00:00
parent 50c4e7b82a
commit 865b149540
2 changed files with 3 additions and 1 deletions

View File

@ -1079,3 +1079,5 @@ minimizing a window).
(278) MinGW is lacking a prototype for ChangeDisplaySettingsEx, so
supply one in this case. Note that this should better be handled via
autoconf than via cpp.
(279) Silenced a signed/unsigned mismatched via a cast.

View File

@ -147,7 +147,7 @@ void fgInitialiseInputDevices ( void )
DWORD type = REG_SZ;
HKEY key;
if (RegOpenKeyA(HKEY_LOCAL_MACHINE,"SOFTWARE\\FreeGLUT",&key)==ERROR_SUCCESS) {
if (RegQueryValueExA(key,"DialboxSerialPort",NULL,&type,devname,&size)==ERROR_SUCCESS){
if (RegQueryValueExA(key,"DialboxSerialPort",NULL,&type,(LPBYTE)devname,&size)==ERROR_SUCCESS){
dial_device=devname;
}
RegCloseKey(key);