Skip to content

Commit 1ad850b

Browse files
akrantzrhuanjl
andauthored
JsSetCurrentContext parameter should be _In_opt_ (#5575)
* JsSetCurrentContext parameter should be _In_opt_ * Update JsSetCurrentContext in jsrt.cpp Co-authored-by: Richard <[email protected]>
1 parent 3504496 commit 1ad850b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: lib/Jsrt/ChakraCommon.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1036,7 +1036,7 @@ typedef unsigned short uint16_t;
10361036
/// </returns>
10371037
CHAKRA_API
10381038
JsSetCurrentContext(
1039-
_In_ JsContextRef context);
1039+
_In_opt_ JsContextRef context);
10401040

10411041
/// <summary>
10421042
/// Gets the script context that the object belongs to.

Diff for: lib/Jsrt/Jsrt.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -799,7 +799,7 @@ CHAKRA_API JsGetCurrentContext(_Out_ JsContextRef *currentContext)
799799
END_JSRT_NO_EXCEPTION
800800
}
801801

802-
CHAKRA_API JsSetCurrentContext(_In_ JsContextRef newContext)
802+
CHAKRA_API JsSetCurrentContext(_In_opt_ JsContextRef newContext)
803803
{
804804
VALIDATE_ENTER_CURRENT_THREAD();
805805

0 commit comments

Comments
 (0)