Changeset 585 for branches/samba-3.3.x/source/lib
- Timestamp:
- Jun 28, 2011, 6:49:53 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.