Changeset 586 for trunk/server/source3/lib/os2helper.c
- Timestamp:
- Jun 28, 2011, 6:50:51 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/lib/os2helper.c
r483 r586 97 97 98 98 // get the exe name (including path) 99 bool os2_GetExeName(char *sExeName )99 bool os2_GetExeName(char *sExeName, int lExeName) 100 100 { 101 101 APIRET rc = NO_ERROR; … … 110 110 111 111 // with the module name we get the path (including the exe name) 112 rc = DosQueryModuleName(ppib->pib_hmte, sizeof(sExeName), sExeName);112 rc = DosQueryModuleName(ppib->pib_hmte, lExeName, sExeName); 113 113 if (rc != NO_ERROR) 114 114 { … … 124 124 char sDrive [_MAX_PATH], sDir [_MAX_DIR]; 125 125 126 if (!os2_GetExeName(sExeName ))126 if (!os2_GetExeName(sExeName, sizeof(sExeName))) 127 127 return false; 128 128 … … 133 133 strcpy(buff, sDrive); 134 134 135 return 0;135 return true; 136 136 } 137 137 … … 142 142 char sDrive [_MAX_PATH], sDir [_MAX_DIR], sName[_MAX_PATH]; 143 143 144 if (!os2_GetExeName(sExeName ))144 if (!os2_GetExeName(sExeName, sizeof(sExeName))) 145 145 return false; 146 146
Note:
See TracChangeset
for help on using the changeset viewer.