Skip to content

Commit 5afb463

Browse files
Merge pull request #2091 from Or-Fadlon/patch-1
Update documentation for GetModuleFileName functions
2 parents 9298c6c + cd6822b commit 5afb463

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

Lines changed: 1 addition & 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 equals or exceeds the value specified by <i>nSize</i>, 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

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

Lines changed: 3 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 equals or exceeds the value specified by <i>nSize</i>, 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,5 @@ For an example, see
137137

138138

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

0 commit comments

Comments
 (0)