Skip to content

Commit 5c4c702

Browse files
authored
Update documentation for GetModuleFileNameW function
1 parent fc274cf commit 5c4c702

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sdk-api-src/content/libloaderapi/nf-libloaderapi-getmodulefilenamew.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ The <b>GetModuleFileName</b> function does not retrieve the path for modules th
7979

8080
A pointer to a buffer that receives the fully qualified path of the module. If the length of the path is less than the size that the <i>nSize</i> parameter specifies, the function succeeds and the path is returned as a null-terminated string.
8181

82-
If the length of the path exceeds the size that the <i>nSize</i> parameter specifies, the function succeeds and the string is truncated to <i>nSize</i> characters including the terminating null character.
82+
If the length of the path exceeds or equals the size that the <i>nSize</i> parameter specifies, the function succeeds and the string is truncated to <i>nSize</i> characters including the terminating null character.
8383

8484
<b>Windows XP:  </b>The string is truncated to <i>nSize</i> characters and is not null-terminated.
8585

@@ -137,3 +137,4 @@ For an example, see
137137

138138

139139
<a href="/windows/desktop/api/libloaderapi/nf-libloaderapi-loadlibraryexa">LoadLibraryEx</a>
140+

0 commit comments

Comments
 (0)