Changeset 57 for trunk/classes/c
- Timestamp:
- May 11, 2023, 10:44:53 PM (2 years ago)
- Location:
- trunk/classes/c
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/classes/c/c_audio/cwastream.c
r3 r57 75 75 76 76 if(!fgets(chrBuf, ulBufSize, fStream)) { 77 fclose(fStream); 77 // Fixme double deallocation is this missing a break; 78 //fclose(fStream); 78 79 sprintf(chrBuf, DEFAULT_AUDIOSTREAM_SERVER); 79 80 } -
trunk/classes/c/c_common/helper.c
r49 r57 62 62 HAPP happ; 63 63 HWND hwndAppTerminateHandler; 64 char startupDir[CCHMAXPATH] ;64 char startupDir[CCHMAXPATH] = {0}; 65 65 char *chrPtr; 66 66 … … 73 73 pDetails.pszParameters = parameters; 74 74 /* Set the startup directory to the location of the executable */ 75 strncpy(startupDir, wrapperExe, sizeof(startupDir) );75 strncpy(startupDir, wrapperExe, sizeof(startupDir) - 1); 76 76 // SysWriteToTrapLog("1: %s %s\n", startupDir, wrapperExe); 77 77 if((chrPtr=strrchr(startupDir,'\\'))!=NULLHANDLE) { -
trunk/classes/c/c_image/cwbmp.c
r2 r57 706 706 if(ppDetailsData) 707 707 { 708 ULONG ulWidth , ulHeight, ulDepth;708 ULONG ulWidth = 0, ulHeight = 0, ulDepth = 0; 709 709 PBITMAPINFOHEADER2 pBmpInfoHeader2; 710 710 … … 725 725 } 726 726 727 /* Fill the structure with the info to be displayed */ 727 /* Fill the structure with the info to be displayed */ 728 // Fixme ulWidth and freinds are potentally uninitulized is the } above in the wrong place 728 729 pImageDetails=(PIMAGEDETAILS)*ppDetailsData; 729 730 pImageDetails->ulWidth=ulWidth; -
trunk/classes/c/c_mm/cwmmdisk.c
r2 r57 97 97 if((hObject=WinQueryObject(chrPlayerID))!=NULLHANDLE) { 98 98 WPObject *wpObject; 99 HWND hwnd ;99 HWND hwnd = 0; 100 100 wpObject=_wpclsQueryObject( _CWMMDisk , hObject); 101 101 if(somIsObj(wpObject)) { -
trunk/classes/c/c_mm/mmfolder.c
r2 r57 358 358 if((somIsObj(cwImageClass)||somIsObj(cwBitmapClass)) && !(_wpQueryStyle(wpObject) & OBJSTYLE_TEMPLATE)) { 359 359 HBITMAP hbm=NULLHANDLE; 360 PBITMAPINFOHEADER2 pBmpInfoHeader2 ;360 PBITMAPINFOHEADER2 pBmpInfoHeader2=NULLHANDLE; 361 361 #ifdef DEBUG 362 362 SysWriteToTrapLog("Object is an image. (%s line: %d)\n", __FUNCTION__, __LINE__);
Note:
See TracChangeset
for help on using the changeset viewer.