diff --git a/projects/clr/hipamd/rocclr/hip_memory.cpp b/projects/clr/hipamd/rocclr/hip_memory.cpp index c638bfce65..c46670dd3f 100755 --- a/projects/clr/hipamd/rocclr/hip_memory.cpp +++ b/projects/clr/hipamd/rocclr/hip_memory.cpp @@ -1557,7 +1557,7 @@ hipError_t ihipMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch if (spitch == 0 || dpitch == 0) { return hipErrorUnknown; } - if (width == 0) { + if (width == 0 || height == 0) { return hipSuccess; }