- Timestamp:
- Jun 28, 2011, 6:49:53 PM (14 years ago)
- Location:
- branches/samba-3.3.x/source
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/dynconfig.c
r482 r585 110 110 { 111 111 char exedir[1024] = ""; 112 if ( os2_GetExePath(exedir) != 0)112 if (!os2_GetExePath(exedir)) 113 113 { 114 114 snprintf(buffer, 260, "%s", SBINDIR); … … 131 131 { 132 132 char exedir[1024] = ""; 133 if ( os2_GetExePath(exedir) != 0)133 if (!os2_GetExePath(exedir)) 134 134 { 135 135 snprintf(buffer, 260, "%s", BINDIR); … … 152 152 { 153 153 char exedir[1024] = ""; 154 if ( os2_GetExePath(exedir) != 0)154 if (!os2_GetExePath(exedir)) 155 155 { 156 156 snprintf(buffer, 260, "%s", SWATDIR); … … 233 233 { 234 234 char exedir[1024] = ""; 235 if ( os2_GetExePath(exedir) != 0)235 if (!os2_GetExePath(exedir)) 236 236 { 237 237 snprintf(buffer, 260, "%s", CODEPAGEDIR); … … 254 254 { 255 255 char exedir[1024] = ""; 256 if ( os2_GetExePath(exedir) != 0)256 if (!os2_GetExePath(exedir)) 257 257 { 258 258 snprintf(buffer, 260, "%s", LIBDIR); … … 275 275 { 276 276 char exedir[1024] = ""; 277 if ( os2_GetExePath(exedir) != 0)277 if (!os2_GetExePath(exedir)) 278 278 { 279 279 snprintf(buffer, 260, "%s", MODULESDIR); … … 357 357 { 358 358 char exedir[1024] = ""; 359 if ( os2_GetExePath(exedir) != 0)359 if (!os2_GetExePath(exedir)) 360 360 { 361 361 snprintf(buffer, 260, "%s", LIBDIR); -
branches/samba-3.3.x/source/lib/os2helper.c
r482 r585 96 96 97 97 // get the exe name (including path) 98 bool os2_GetExeName(char *sExeName )98 bool os2_GetExeName(char *sExeName, int lExeName) 99 99 { 100 100 APIRET rc = NO_ERROR; … … 109 109 110 110 // with the module name we get the path (including the exe name) 111 rc = DosQueryModuleName(ppib->pib_hmte, sizeof(sExeName), sExeName);111 rc = DosQueryModuleName(ppib->pib_hmte, lExeName, sExeName); 112 112 if (rc != NO_ERROR) 113 113 { … … 123 123 char sDrive [_MAX_PATH], sDir [_MAX_DIR]; 124 124 125 if (!os2_GetExeName(sExeName ))125 if (!os2_GetExeName(sExeName, sizeof(sExeName))) 126 126 return false; 127 127 … … 132 132 strcpy(buff, sDrive); 133 133 134 return 0;134 return true; 135 135 } 136 136 … … 141 141 char sDrive [_MAX_PATH], sDir [_MAX_DIR], sName[_MAX_PATH]; 142 142 143 if (!os2_GetExeName(sExeName ))143 if (!os2_GetExeName(sExeName, sizeof(sExeName))) 144 144 return false; 145 145
Note:
See TracChangeset
for help on using the changeset viewer.